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
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
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.