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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors