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

I've the following pbix file https://1drv.ms/u/s!Amd7BXzYs7AVk3D5iDMIrhfnpQNW?e=lHWRuH

when the user select in colun name %var, it'll add the measure %var n the table and only when both intial.subtotal and table1.Initial subtotal are selected.

 

 

jaweher899_0-1671209854186.png

 

for example here when initial.subtotal is not selected and %var is selected, so %var will not be added to the table

jaweher899_1-1671209982941.png

is there a way to do it pelase?

2 REPLIES 2
MFelix
Super User
Super User

Hi @jaweher899 ,

 

Try to add the following measure:

VAR % - VAR =
IF (
    SELECTEDVALUE ( 'Table'[ColumnName] ) = "%var"
        && COUNTROWS ( 'Parameter 2' ) = 2,
    [%var],
    IF (
        SELECTEDVALUE ( 'Table'[ColumnName] ) = "var"
            && COUNTROWS ( 'Parameter 2' ) = 2,
        [var],
        ""
    )
)

MFelix_0-1671299840284.pngMFelix_1-1671299853459.png

Be aware that since the Initial Subtotal slicer is a field parameter no filter is the same has both selected.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



jaweher899
Impactful Individual
Impactful Individual

Thank you @MFelix In case of I select var and % var , it will return blank 

 

jaweher899_0-1671561897921.png

In case of I select nothing for the slicer column name, how to not show var-var % column by default 

jaweher899_1-1671561971538.png

 

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.