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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.