Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I am making a report that displays a replica of a program my company has that displays thickness of their wood products. I have statuses that identify whether data is "good" or "bad". Anything with a status of 5 is "good", but that does not mean that anything from 1-4 is necesarily bad. For example, a status of 2 indicates that it was a first cut of a piece of wood. I have a chart that displays all of the good data and a slicer with first cut and second cut labels. So my good data formula is
\\\
Hi @villasenorbritt,
You can add if statement to check the slicer selections and redirect to different expressions to achieve your requirement.
Can you please share a pbix or some dummy data that keep raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
@Anonymous Thank you for your response. Here is some sample data to make it easier to get a solution.
| Sample # | AVG Thickness | AVG STDEV | TopBottomStatus | ThicknessStatus | DebrisStatus | DataStatus | Cuts |
| 1 | 1.21 | 0.023 | 3 | 5 | 5 | Issue | Null |
| 2 | 1.23 | 0.022 | 2 | 5 | 5 | Issue | First Cut |
| 3 | 1.11 | 0.021 | 5 | 5 | 5 | No Issue | 2nd Cut |
| 4 | 1.21 | 0.2 | 5 | 4 | 4 | Issue | 2nd Cut |
| 5 | 1.22 | 0.19 | 2 | 5 | 5 | Issue | 1st Cut |
I have multiple slicers.
1. Cuts -- 1st or 2nd
2. Data Issue -- No Issue or Issue
3. One for each of the data issues labeled as Thickness Issue, Debris Issue, ETC.
"Good Data" is anything with a status that is equal to 5 (I have some listed in this formula that are not in the sample data. I'm connectd to SQL so I made a quick table.) Below is how the formula is supposed to look:
@villasenorbritt I would recommend adding another column that has the logic of what you want to include in the visual, that way your existing status column will not have any impact on other visuals on the reports.
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@parry2k Do you know how I could create a column that does the AVERAGE of standard deviation, but with filters such as TopBottomStatus = 5? I've tried multiple different ways with no luck. I see that the AverageX can be done with filters, but when I attempt it, I get all the same answer in my columns.
I'm not sure I get what you mean. Could you further explain? I've included my visual in case that helps.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |