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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
DSzcz
Frequent Visitor

Combining dimensions instances based on slicer option within waterfall visual

Hey Guys, 

To simplify it: 

I have a fact table with keys to the dimensions and a column value, which is the measure of the value. 
Sales = SUM('FactTable'[value]) 

 


Fact table: 

DateKeyRunKeyTouchpointKey

Chann

elKey

Value
2024022020240220_0111100
2024022020240220_0122100
2024022020240220_0133100
2024022020240220_0211100

 

Dim Touchpoint 
TouchpointKeyTouchpointname
1Base
2Salesperson A
3Salesperson B
4SalesPerson C

What I need to replicate from Python app is to have such slicer by the waterfall chart where based on the criteria from that slicer, the data is added to the baseline touchpoint. 

 

Then I need to show the data by waterfall chart: 

DSzcz_1-1708435855848.png

But the tricky part is about the slicer. If you pick one of the objects from it, it shall be added to the baseline and this particular instance of Touchpoint dimension will not be displayed by the X- axis anymore. 
If you have a look against the visual above (Sales person A has a sales of 100). 
At the buttom visual this person was picked and the person disappeared from axis X and increased the value of baseline. 
The objects on X-axis are coming from one dimension. Same with the slicer. 

 

DSzcz_2-1708436081243.png

Do you have any idea how to deal with that? 
I tried setting up a mapping table but it didn't work when it comes to waterfall visual. 
Cheers! 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @DSzcz ,

Please have a try.

Adjusted Sales = 
VAR SelectedTouchpoint = SELECTCOLUMNS('Dim Touchpoint',"values",'Dim Touchpoint'[TouchpointKey])
RETURN
IF(
    SelectedTouchpoint = "All",
    SUM('FactTable'[value]),
    CALCULATE(
        SUM('FactTable'[value]),
        FILTER(
            'FactTable',
            'FactTable'[TouchpointKey] = "1" || 'FactTable'[TouchpointKey] = SelectedTouchpoint
        )
    )
)

How to Select Multiple Columns in Power BI - Zebra BI

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
DSzcz
Frequent Visitor

Hey @Anonymous , 
Thanks for your input. 
How would you procced if there could be more options picked by the slicer at once? 
Not olny single choice (this spoils the SELECTEDVALUE()) approach. 

Best wishes 

Anonymous
Not applicable

Hi @DSzcz ,

Please have a try.

Adjusted Sales = 
VAR SelectedTouchpoint = SELECTCOLUMNS('Dim Touchpoint',"values",'Dim Touchpoint'[TouchpointKey])
RETURN
IF(
    SelectedTouchpoint = "All",
    SUM('FactTable'[value]),
    CALCULATE(
        SUM('FactTable'[value]),
        FILTER(
            'FactTable',
            'FactTable'[TouchpointKey] = "1" || 'FactTable'[TouchpointKey] = SelectedTouchpoint
        )
    )
)

How to Select Multiple Columns in Power BI - Zebra BI

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @DSzcz ,

Please refer to the posts.

Solved: How to write a DAX function when a Slicer value is... - Microsoft Fabric Community

Solved: Display selected slicer values(multiselect) - Microsoft Fabric Community

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I'm aware of that, thanks! 

So if we have a variable that stores all the slicers that were picked, then this particular measure is not gonna work. 
How would you adjust the part that is after FILTER function? 
Cheers

Adjusted Sales = 
VAR SelectedTouchpoint = SELECTEDVALUE('Dim Touchpoint'[TouchpointKey], "All")
RETURN
IF(
    SelectedTouchpoint = "All",
    SUM('FactTable'[value]),
    CALCULATE(
        SUM('FactTable'[value]),
        FILTER(
            'FactTable',
            'FactTable'[TouchpointKey] = "1" || 'FactTable'[TouchpointKey] = SelectedTouchpoint
        )
    )

 

Anonymous
Not applicable

Hi @DSzcz ,

Please have a try.

Create a measure.

Adjusted Sales = 
VAR SelectedTouchpoint = SELECTEDVALUE('Dim Touchpoint'[TouchpointKey], "All")
RETURN
IF(
    SelectedTouchpoint = "All",
    SUM('FactTable'[value]),
    CALCULATE(
        SUM('FactTable'[value]),
        FILTER(
            'FactTable',
            'FactTable'[TouchpointKey] = "1" || 'FactTable'[TouchpointKey] = SelectedTouchpoint
        )
    )
)

 

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors