The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 ?
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
36 | |
14 | |
12 | |
7 | |
7 |