Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi everyone,
I am relatively new working on Power Bi and I am struggling with a measure I want to create. I have below table with different measures created for monthly, year to date, full year, past year and so on. But the issue is that I have one item in the column Unit of Measure called M2 which is summing just as the others, but in fact this item should not be summing it should be an average and I don't know how to create a measure that sum for the rest of items but average just for this one.
Hope you can help me on this one.
Thanks.
Solved! Go to Solution.
In your measure just use SWITCH on the unit of measure field. Your measure must sense if the relevant unit of measure is in scope and then apply the different logic. To check if it's in scope you can either use the ISINSCOPE function or HASONEFILTER (perhaps with some additional conditions).
In your measure just use SWITCH on the unit of measure field. Your measure must sense if the relevant unit of measure is in scope and then apply the different logic. To check if it's in scope you can either use the ISINSCOPE function or HASONEFILTER (perhaps with some additional conditions).
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
11 |