Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Solved! Go to Solution.
Hello, @Helia9235
According to your description, I created data to reproduce your scenario. The pbix file is attached at the end.
Mesa:
You can create a measure as follows.
Result =
IF(
ISINSCOPE('Table'[Category]),
SUM('Table'[Y]),
CALCULATE(
AVERAGE('Table'[Y]),
ALLEXCEPT('Table','Table'[Cluster],'Table'[Stain],'Table'[Determination Label])
)
)
Result:
Best regards
Allan
If this post helps, then consider Accept it as the solution to help other members find it faster.
Hello, @Helia9235
According to your description, I created data to reproduce your scenario. The pbix file is attached at the end.
Mesa:
You can create a measure as follows.
Result =
IF(
ISINSCOPE('Table'[Category]),
SUM('Table'[Y]),
CALCULATE(
AVERAGE('Table'[Y]),
ALLEXCEPT('Table','Table'[Cluster],'Table'[Stain],'Table'[Determination Label])
)
)
Result:
Best regards
Allan
If this post helps, then consider Accept it as the solution to help other members find it faster.
Thanks for your help @v-alq-msft , I have a another question, in this measure which you provided how can I also add STDV function?
STDEV.S('Table'[Y])I tried to add it next to AVERAGE but does not work.
@Anonymous , The information you have provided is not making the problem clear to me. Can you please explain with an example?
If you are using a matrix, remove columns from "Column"
Appreciate your Kudos.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 31 | |
| 28 | |
| 24 | |
| 24 | |
| 19 |
| User | Count |
|---|---|
| 44 | |
| 31 | |
| 17 | |
| 17 | |
| 15 |