July 9, 2022 at 11:16 am
Hi
I have data like below. Brands can be dynamic
Loc1 Brand Qty Value
Loc1 Omega 10 1000000
Loc2 Swatch 5 25000
Loc1 Swatch 8 32000
Output
Location Omega Qty Omega Value Swatch qty Swatch Value
Loc1 10 1000000 5 25000
Loc2 8 32000
July 10, 2022 at 12:10 pm
Thanks for posting your issue and hopefully someone will answer soon.
This is an automated bump to increase visibility of your question.
July 10, 2022 at 3:25 pm
Use a matrix in SSRS?
July 10, 2022 at 6:17 pm
Hi
I have data like below. Brands can be dynamic
Loc1 Brand Qty Value
Loc1 Omega 10 1000000
Loc2 Swatch 5 25000
Loc1 Swatch 8 32000
If you'd post the data in a readily consumable (the article at the first link in my signature for one way to do that), I'd already have it done for ya.
In the meantime, the following article shows how to do such a dynamic "CROSSTAB".
https://www.sqlservercentral.com/articles/cross-tabs-and-pivots-part-2-dynamic-cross-tabs
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply