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.
So I have this Table, now I need a way to choose only the records I have marked green. The record with the latest date that is.
Solved! Go to Solution.
Hi @Johan3ngholm,
You could create a calculated table like this:
New table_1 = FILTER ( 'Test Data1', 'Test Data1'[Date] = CALCULATE ( MAX ( 'Test Data1'[Date] ), ALLEXCEPT ( 'Test Data1', 'Test Data1'[ArticleNo] ) ) )
Best regards,
Yuliana Gu
Hi @Johan3ngholm,
You could create a calculated table like this:
New table_1 = FILTER ( 'Test Data1', 'Test Data1'[Date] = CALCULATE ( MAX ( 'Test Data1'[Date] ), ALLEXCEPT ( 'Test Data1', 'Test Data1'[ArticleNo] ) ) )
Best regards,
Yuliana Gu
Thanks @v-yulgu-msft, it works, The only problem is when I have more than one transaction on the same article the same date. Then this function summerize all values that date, I only want one of the values that date. I want the lowest value that date.
Hi @Johan3ngholm,
The easiest way is to filter out the information on the table by max date aggregating the information, if you want to put the information on a card you need to have a measure that is something like this:
Total = CALCULATE ( SUMX ( SUMMARIZE ( ALL ( 'Table'[ArticleNo]; 'Table'[DateOfMovement]; 'Table'[DateOfMovement]; 'Table'[Value] ); 'Table'[ArticleNo]; "Date"; MAX ( 'Table'[DateOfMovement] ); "TotalValue"; SUM ( 'Table'[Value] ) ); [TotalValue] ) )
See the options below:
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsCovering 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 |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |