Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi All,
I’d tried to add a Status formula to group the data and create a slicer (single select) to filter the data. However, the Type 3 group is part of Type1&2. May I know if is there any way to show the Type 3 value correctly; the type 3 value should be $4,000. Thanks!
Status = If ( ([Category] = “A” && [Design FY]= 2022), “Type 1” ,
If ( ([Category]=”B” && [Design FY]= 2022), “Type2”,
If ( ([Created FY]>= 2018), “Type3”, ””)))
Table
Category | Design FY | Created FY | Amount |
A | 2022 | 2017 | $100 |
A | 2022 | 2018 | $1,000 |
B | 2022 | 2018 | $3,000 |
Result
Category | Total Amount |
Type 1 | $1,100 |
Type 2 | $3,000 |
Type 3 | $0 (The correct result should be $4,000) |
Solved! Go to Solution.
Hi,
You may download my PBI file from here.
Hope this helps.
Hi,
You may download my PBI file from here.
Hope this helps.
This solution might also help you
How to achieve 'or' logic but not 'and' logic with... - Microsoft Power BI Community
Hi,
you are creating a calculated column that will show a value (the status) for each row of data.
That means that each line will get only one status assigned:
So the logic depends on your formula that consists of nested IF functions.
As an example, you could also first check if Created FY >= 2018 and then check for the status of "type 1" and "type 2" like this:
You could try if two seperate calculated columns will fullfill your requirements when you add them to two slicers, otherwise i think the only other option is to adjust IF in such a way that you can have the result like "Type 2 & 3"
Hi @sibanez Thanks for your feedback. I can add two separate logics. Did you know how to combine logic_1 and logic_2 into one slicer? So, I can use one slicer to filter the Type 1, Type2, and Type 3 data. Thansk!
Hi @amitchandak Did you know if there is any formula to fix this display issue? It would be great if you could help me with this request. Thanks!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 64 | |
| 31 | |
| 29 | |
| 24 |