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 all,
I'm currently facing an issue with a divide measure in Power BI.
Here's a simplified version of my data:
I want to create a measure for the last column that calculates Measure 1 divided by Measure 2. The desired result should look like this:
The challenge is that I need this measure without grouping the products, as new products are frequently added. I've attempted to use the REMOVEFILTERS and ALL functions, and I have managed to create two separate measures successfully, but combining measures ends in an incorrect total value.
Could anyone suggest an approach to solve this using DAX?
Thank you!
Hi,
can you explain how come the for category D the measure values is becoming 8?
If this is the case then you could create a filter measure to use in the filter pane:
BooleanInclude =
VAR _Msr1 =
CALCULATE ( SUM ( 'Table'[Measure1] ) )
VAR _Msr2 =
CALCULATE ( SUM ( 'Table'[Measure2] ) )
RETURN
IF (
OR ( ISBLANK ( _Msr1 ), ISBLANK ( _Msr2 ) ),
0,
1
)
Measure (Measure 1 / Measure 2) =
DIVIDE (
CALCULATE ( SUM ( 'Table'[Measure1] ) ),
CALCULATE ( SUM ( 'Table'[Measure2] ) ),
BLANK ()
)
Hi @Anonymous can you clarify the value of Product D in Category C Changed from blank to 8 is this intentional?
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 |
---|---|
10 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
13 | |
12 | |
11 | |
11 | |
8 |