Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jaweher899
Impactful Individual
Impactful Individual

dynamic table

Hi,

 

I've the following reprot https://1drv.ms/u/s!Amd7BXzYs7AVlyc5r1DY_LAlvLFQ?e=vc9qqy

I'd like to link between measures and the choices by user

Measuresslicer
Marginvariance
Margin %%variance
Diffvariance
Diff %%variance

 

Margin = [Sales Amount] - [Total Cost]
 When the suer selects  [Sales Amount]  [Total Cost] and variance, it'll displayed [Sales Amount] , [Total Cost] and Margin
jaweher899_1-1671804812231.png

 

  When the suer selects  [Sales Amount]  [Total Cost] and %variance, it'll displayed [Sales Amount] , [Total Cost] and Margin%

jaweher899_0-1671804750539.png

 

diff = sum(Sales[Net Price])-sum('Product'[Unit Price])
 
when the user selects   [Sales Amount]  [Total Cost] , net price , unit cost and variance, it'll displayed [Sales Amount] , [Total Cost] and Margin and diff

In the real project i've about 80 measures and I eed to creat a separate slicer to calculate variance and %variance

1 ACCEPTED SOLUTION

Thats why I said "Value 1 and Value 2 change it to be the measures that end user can select". Simply add a possible measures combinations and the end user will select 2 correct one, they will appear in Value 1 and Value 2 measures to be shown the var and %var like in the previous post.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
bolfri
Solution Sage
Solution Sage

Hello @jaweher899,

 

It's the same scenario like before: https://community.powerbi.com/t5/Desktop/dynamic-columns-in-table/m-p/2984827#M1019750 and I gave you the solution there. You just only need to apply possible scenarios that user can pick.

 

The difference here is not only select what kind of columns needs to appear Value 1, Value 2, Difference, %Difference (like in your prebious post), but in the Value 1 and Value 2 change it to be the measures that end user can select.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




jaweher899
Impactful Individual
Impactful Individual

@bolfri the end user would like to have a slicer variance and %variance separately from the other slicer for the measures. 

Thats why I said "Value 1 and Value 2 change it to be the measures that end user can select". Simply add a possible measures combinations and the end user will select 2 correct one, they will appear in Value 1 and Value 2 measures to be shown the var and %var like in the previous post.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




jaweher899
Impactful Individual
Impactful Individual

@bolfri could you please share thr pbix file and I'll check it? Thank you

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.