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
srlabhe123
Post Patron
Post Patron

Setting up Slicer for DAX

Hi I have a DAx below which I need to have on Slicer so that it can filter table visuals

QTY_Scrap_New =
if(([QTY_1_Day_SL]-(sum(NextDayDeliQty[QTY_Orig_Order])+sum(PastDayDeliQty[QTY_Past_Orig_Order])))<0,0,([QTY_1_Day_SL]-(sum(NextDayDeliQty[QTY_Orig_Order])+sum(PastDayDeliQty[QTY_Past_Orig_Order]))))
 
When I try to select the above DAX in slicer it does not allow me to select the same.
 
Kindly suggest.
Thanks
 
3 REPLIES 3
negi007
Community Champion
Community Champion

@srlabhe123 Since you are using if statment and value of the slicer depend on the if calculation that could be the reason it is not allowing you the use the value in slicer. try using some other alternative for your problem.




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Can you please suggest how can i achieve the same

Hi @srlabhe123 ,

 

Based on your description, the formula you provide looks like measure. Measure cannot be used as a slicer directly, you can refer to these threads:

https://community.powerbi.com/t5/Desktop/Measure-as-Slicer-Workaround/td-p/611781 

https://community.powerbi.com/t5/Desktop/Cannot-use-measure-in-slicer/td-p/166909 

 

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

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.