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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
valgecko
New Member

Disconnect Table for slicing a measure

Hello,

 

I've read and watched a lot a videos on how to do that but my context is a little different. I want to be able to extract or not a condition, created by a measure.

 

I have a measure Qty Forecast. I want to be able to extract or not qty 0 or empty. To do so, I have created a measure 

1. 

valgecko_0-1603985248013.png

2. I have created a disconnect table

valgecko_1-1603985323502.png

3. I have started my main measure in ordre to be able to link my slicer with desired condition. 

valgecko_2-1603985489653.png

The selection works just fine when I put this last measure into a card et use the table created as a slicer

valgecko_3-1603985565366.png

Now my challenge is to be able to filter (extract) one of the result of my measure from my visual with a slicer, condition 1. I am not able to conclude my measure. Doesn't work. Anyone know?

 

valgecko_4-1603986513328.png

I am trying to do something like that but not selection a different measure but selection a result of a meau

1 REPLY 1
mahoneypat
Employee
Employee

Since you just have two conditions (1 or 0), I would just use an IF but you can just have something like this in the Return part of your measure to return either of two expressions.

 

Return IF(selection=1, SUM(Table[Column1]), CALCULATE(SUM(Table[Column1]), Table[Column2] = "Some Value"))

 

Regards,

Pat

 

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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