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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.