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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
tahechadv_2022
Helper II
Helper II

Conditional What-If

Hi guys,

 

I was making a budget dashboard and I tried as hard as I could to implement a conditional what-if but i couldn't.

 

Let me explain it:

I create the parameter and its range. Lets say 0 to 1 (0% to 100%).

 

I wanted to be able to enable the manager to change the percentual for a especific class WITHOUT altering the order classes.

Example:

 

CAT-A = 100

CAT-B = 10

CAT-C = 1

 

If the users select CAT-A and ajust the range to 10%, I would like it only to change CAT-A from 100 to 110, like this:

CAT-A = 110

CAT-B = 10

CAT-C = 1

 

I tried to use selectedvalue(), lookupvalue(), filter()... and none of them worked out.

 

The best I did was this measure:

tahechadv_2022_0-1720121458474.png

But it just work if I wright down the "Conta", if I try to use selectedvalue() or lookupvalue() it does not work.

It that possible to create a dynamic What-If?

 

Total Cenário =
SUMX (
'Finanças TI',
IF (
'Finanças TI'[Conta] = "CAT-A",
('Finanças TI'[Valor_Bruto_CC] * 'Parameter '[Parameter  Value] + 'Finanças TI'[Valor_Bruto_CC]),
'Finanças TI'[Valor_Bruto_CC]
)
)

1 ACCEPTED SOLUTION
NaveenGandhi
Super User
Super User

Hi @tahechadv_2022 

Check the attached PBIX for the solution you are expecting.

Let me know if this helps or if you have any questions.

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!

View solution in original post

3 REPLIES 3
NaveenGandhi
Super User
Super User

Hi @tahechadv_2022 

Check the attached PBIX for the solution you are expecting.

Let me know if this helps or if you have any questions.

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!

freginier
Impactful Individual
Impactful Individual

Hi @tahechadv_2022 you can create a new table in which you add a rank for each category and then link to table to your data. You should be able to sort your column using this new table and keep the order even if the value change. 

Does that answer your question ? 

No, 

 

I want to keep the sum of all categories, except the category selected in the VAR ContaSelecionada.

Like this:

 

tahechadv_2022_0-1720122830247.png

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.