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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Ben1981
Frequent Visitor

Drill through on measure with conditions

Hi, 

I have a line chart with a fairly simple measure that does a count with a filter and the filter will change depending on a slicer selection. So my calculation is as below: 

 

Measure =
VAR _Selection = SELECTEDVALUE(''Table'[STATUS])
VAR _New = CALCULATE(COUNT('Table'[UID]),'Talble'[CAT]="New")+0
VAR _Used = CALCULATE(COUNT('Table'[UID]),'Talble'[CAT]="Used")+0
RETURN
if(_Selection = "New",_New,_Used)
 
My problem comes with a drill through, I need to be able to drill through to another page with either the new or used based on the selection criteria but this isn't being carried across. Any ideas on how to make this work? 

Also bookmarks isn't an option in my case.
 
Any help would be apreiciated.
 
Thanks
Bem
1 ACCEPTED SOLUTION
Ben1981
Frequent Visitor

Sorry I actually solved this myself, it turns out it was a really simple thing. I just had to add the status field to the visual as a filter and set it to both conditions and this sorted it. 

So simple and yet it was the last thing I tried, doh! 

 

 

View solution in original post

1 REPLY 1
Ben1981
Frequent Visitor

Sorry I actually solved this myself, it turns out it was a really simple thing. I just had to add the status field to the visual as a filter and set it to both conditions and this sorted it. 

So simple and yet it was the last thing I tried, doh! 

 

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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