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
usman96
Helper II
Helper II

Direct Query

Can We make What IF parameter in Direct Query Mode?

1 ACCEPTED SOLUTION

@usman96,

It is not possible to use What if parameter in Direct Query mode, in this mode, the what if parameter feature is disabled.
1.JPG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
miltenburger
Helper V
Helper V

I think it is better to use the CASE statement, some more information about this that might help:

https://stackoverflow.com/questions/63447/how-do-i-perform-an-if-then-in-an-sql-select

 

Kind regards

but I want to make What if parameter so that i could use it in my Dashboard as a slicer/Filter

@usman96,

It is not possible to use What if parameter in Direct Query mode, in this mode, the what if parameter feature is disabled.
1.JPG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-yuezhe-msft 

Is it still not possible ?

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.