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
annaselway
Frequent Visitor

Creating a drill-through button destination conditionally

Hi 🙂 

I'm following the microsoft page: https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-drill-through-buttons#set-the-drill... trying to configure a drill through button that will just display/go to the drill through based on a condition. I have this column 'Amended' which takes a boolean True (1) and False (0). I've written a DAX Measure as recommended in the post to feedback the drill through location based on the condition I would like: 

 

AmendmentsDrillThrough = If(SELECTEDVALUE('fact Orders'[IsAmended])== 0, " ", "Amendments")

 

 

Following the post, it suggests next i just need to go into Action in my button and add it as a conditional formatting destination. I click the fx and go to add this measure, and it wont let me select it - it's greyed out. Any ideas? 

 

annaselway_0-1603728551781.png

 

I'm assuming it's because its not a Text value? 

 

But again this doesn't seem to be something i can change: 

annaselway_1-1603728781856.png

 




Any ideas? 

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @annaselway ,

 

Please check if the Data type of your column "IsAmended" is "Text".

If it is, please change your measure like so:

AmendmentsDrillThrough = If(SELECTEDVALUE('fact Orders'[IsAmended])== "0", " ", "Amendments")

 

 

Best regards

Icey

 

If this post helps,then consider Accepting it as the solution to help other members find it faster.

View solution in original post

1 REPLY 1
Icey
Community Support
Community Support

Hi @annaselway ,

 

Please check if the Data type of your column "IsAmended" is "Text".

If it is, please change your measure like so:

AmendmentsDrillThrough = If(SELECTEDVALUE('fact Orders'[IsAmended])== "0", " ", "Amendments")

 

 

Best regards

Icey

 

If this post helps,then consider Accepting it as the solution to help other members find it faster.

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.