The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
19 | |
18 | |
18 | |
14 |
User | Count |
---|---|
36 | |
34 | |
20 | |
19 | |
15 |