Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hello everone,
am facing an issue with conditional formatting when am using the matrix visual with calculation groups.
As you will see in the picture below, the conditional formatting for the expenses lines will give me a positive variance% as the actual is higher than the budget or the last year
is there a way to multiply the expense lines with -1? here is my data table in case it helps.
if i need to change the data setup please infrom me what is the best way to do so.
Thank you all
Solved! Go to Solution.
Hi,
I recommend using SWITCH to achieve this. In practice this would be something like this:
P&L measure = var _line = MAX('Table'[Account]) return
SWITCH(TRUE(),
_line = "Total Other Exp.", -1*[P&L SUM],
_line = "Revenue" , [P&L SUM])
Here you should include logic for all the different cases. The two above are just examples. [P&L SUM] should contain sum of relevant accounts. Additionally I do hope your data is mock data. It is not a good idea to post accounting data to any forum.
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
Hi,
I recommend using SWITCH to achieve this. In practice this would be something like this:
P&L measure = var _line = MAX('Table'[Account]) return
SWITCH(TRUE(),
_line = "Total Other Exp.", -1*[P&L SUM],
_line = "Revenue" , [P&L SUM])
Here you should include logic for all the different cases. The two above are just examples. [P&L SUM] should contain sum of relevant accounts. Additionally I do hope your data is mock data. It is not a good idea to post accounting data to any forum.
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
69 | |
35 | |
21 | |
18 | |
15 |
User | Count |
---|---|
126 | |
32 | |
28 | |
24 | |
24 |