Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Dear All,
i want my "what if parameter" to affect only certain row in table - if the condidion is met (screen below), for example:
when i will hard code value of 20 inside DAX calculation it's working fine - there is 50 bikes in last column, but when im changing it to Extra bikes parameter value - nothing is happening, it doesn't see param value ....what am i doing wrong here ?
Solved! Go to Solution.
ok, i think i got this one ! switch statement with default parameter solved the problem of wrong totals
ok, i think i got this one ! switch statement with default parameter solved the problem of wrong totals
HI @BarSi1986
Try this measure:
Measure =
Var _A =[Extra bikes Value]
return
if(max(Items[Item])="bikes",sum(Items[Quantity])-'Extra bikes'[Extra bikes Value],sum(Items[Quantity]))
Output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Well, it fixed problem on row level here, but still doesn't affect TOTAL - we have 10+20 items, and the total of column is still 50, any ideas ? cause im still new in DAX 😞
User | Count |
---|---|
16 | |
15 | |
14 | |
12 | |
11 |
User | Count |
---|---|
19 | |
16 | |
14 | |
11 | |
9 |