Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello, these are the data I work with :
In the third column, _heures projete signes, I have the sum of the max values
The new col (is a the target measure i designed on paint) sub totals should be the multiplication of
the grand total should be the sum of the max value for client A and B
Please advise the right DAX for that result 🙂
regards
Solved! Go to Solution.
Hi @antoinersw,
Can you please share a pbix or some dummy data that keep the 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
In addition, you can also try to use the following measure formula if it helps:
formula =
VAR summary =
ADDCOLUMNS (
SUMMARIZE (
'Table',
'Table'[Client],
"maxSignes",
CALCULATE (
MAX ( 'Table'[heures projete signes] ),
ALLSELECTED ( 'Table' ),
VALUES ( 'Table'[Client] )
)
),
"maxPresta",
CALCULATE (
MAX ( 'Table'[Duree presta] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[heures projete signes] = [maxSignes]
&& 'Table'[Client] = [Client]
)
)
)
RETURN
SUMX ( summary, [maxSignes] * [maxPresta] )
Regards,
Xiaoxin Sheng
Hi @antoinersw,
Can you please share a pbix or some dummy data that keep the 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
In addition, you can also try to use the following measure formula if it helps:
formula =
VAR summary =
ADDCOLUMNS (
SUMMARIZE (
'Table',
'Table'[Client],
"maxSignes",
CALCULATE (
MAX ( 'Table'[heures projete signes] ),
ALLSELECTED ( 'Table' ),
VALUES ( 'Table'[Client] )
)
),
"maxPresta",
CALCULATE (
MAX ( 'Table'[Duree presta] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[heures projete signes] = [maxSignes]
&& 'Table'[Client] = [Client]
)
)
)
RETURN
SUMX ( summary, [maxSignes] * [maxPresta] )
Regards,
Xiaoxin Sheng
Hello, is the calculus not clear enough ?
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |