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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Dear community,
I have the following simplified Table
| Company | Project | Period | Value1 | Value2 |
| A | A | 13 | 10 | 20 |
| A | A | 13 | 10 | 20 |
| A | B | 13 | 20 | |
| A | B | 13 | 20 | |
| A | C | 13 | 10 | 20 |
| A | C | 13 | 20 | 20 |
| A | D | 13 | 20 | |
| A | D | 13 | 10 |
I want to create a measure that returns me a fixed value by dividing the sum of non blank value1 and the sum of non blank value2 whereas the sum of these values is grouped by Company and Period.
Here is what I have created to "achieve" the above desired result
AVERAGEX (
SUMMARIZE (
CALCULATETABLE (
'Table',
'Table'[Value1] <> BLANK ()
),
'Table'[Company],
'Table'[Period],
"Result",
VAR SumValue1=
SUM ( 'Table'[Value1] )
VAR SumValue2 =
SUM ( 'Table'[Value2] )
RETURN
SumValue1/ SumValue2
),
[Result]
)
And I get the following as a result if I use this measure, it seems that measure is calculating row by row
| Company | Project | Period | Value1 | Value2 | Result |
| A | A | 13 | 10 | 20 | 0,5 |
| A | A | 13 | 10 | 20 | 0,5 |
| A | B | 13 | 20 | 0 | |
| A | B | 13 | 20 | 0 | |
| A | C | 13 | 10 | 20 | 0,5 |
| A | C | 13 | 20 | 20 | 1 |
| A | D | 13 | 20 | 0 | |
| A | D | 13 | 10 | 0 | |
| Total | 0,33333 |
Sum(Value1) = 50
Sum(Value2) = 150
Result = 50/150= 0,333333
Whereas I expected the fixed value based on the sum of non blank value1 and sum of non blank value2 should be applied
| Company | Project | Period | Value1 | Value2 | Result |
| A | A | 13 | 10 | 20 | 0,3333 |
| A | A | 13 | 10 | 20 | 0,3333 |
| A | B | 13 | 20 | 0,3333 | |
| A | B | 13 | 20 | 0,3333 | |
| A | C | 13 | 10 | 20 | 0,3333 |
| A | C | 13 | 20 | 20 | 0,3333 |
| A | D | 13 | 20 | 0,3333 | |
| A | D | 13 | 10 | 0,3333 | |
| Total | 0,3333 |
Any help would be appreciated!
Kind regards,
Rookie12
Solved! Go to Solution.
@JustaRookie012, here is my suggested solution.
Change the DAX of your Result measure to this:
Result =
CALCULATE(
DIVIDE(SUM(YourTable[Value1]), SUM(YourTable[Value2])),
ALL(YourTable)
)
This gives me the following output:
@JustaRookie012, here is my suggested solution.
Change the DAX of your Result measure to this:
Result =
CALCULATE(
DIVIDE(SUM(YourTable[Value1]), SUM(YourTable[Value2])),
ALL(YourTable)
)
This gives me the following output:
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 14 | |
| 9 | |
| 7 | |
| 7 | |
| 6 |