Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all!
I have a table that contains the value for each sales order:
Date | Article | Order | Value |
01.01.2023 | A | 100 | 5 |
01.01.2023 | A | 101 | 5 |
01.01.2023 | B | 102 | 6 |
Then I have a table visual that shows all the details out of this table.
Here I would like to add a measure that sums up the Value for each article once.
For instance: In the example above we have 2 orders for the same article. Here I would like to consider the value 5 just only 1 time.
In the end the table should display this:
Date | Article | Order | Value |
01.01.2023 | A | 100 | 5 |
01.01.2023 | A | 101 | 5 |
01.01.2023 | B | 102 | 6 |
Grand Total | 11 |
How would you do this?
Solved! Go to Solution.
Hi @joshua1990
please try
ValueMeasure =
ValueMeasure =
SUMX (
SUMMARIZE (
'Table',
'Table'[Article],
'Table'[Date],
"@Value", SUMX ( TOPN ( 1, 'Table', 'Table'[Order] ), 'Table'[Value] )
),
[@Value]
)
Hi @joshua1990
please try
ValueMeasure =
ValueMeasure =
SUMX (
SUMMARIZE (
'Table',
'Table'[Article],
'Table'[Date],
"@Value", SUMX ( TOPN ( 1, 'Table', 'Table'[Order] ), 'Table'[Value] )
),
[@Value]
)
Try
SUMX(VALUES(Table[Article]), [YourMeasure] )
Pat
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
41 | |
21 | |
21 | |
14 | |
14 |
User | Count |
---|---|
42 | |
39 | |
33 | |
19 | |
18 |