Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi everyone,
I have this table below that is connect to a Calendar Table.
Date | ID | Column1 | Column2 |
| 31/07/2021 | A | 160 | 1060 |
| 31/08/2021 | A | 200 | 1170 |
| 30/09/2021 | A | 175 | 1300 |
| 31/07/2021 | B | 10 | 150 |
| 31/08/2021 | B | 12 | 200 |
| 30/09/2021 | B | 14 | 250 |
I want to calculate two metrics. They have to show the most recent result, that is defined by a slicer based on the Calendar Table. The metrics are:
I am struggling with getting the most recent result. Let's say that my slicer goes from 1/Jun/2021 to 15/Sep/2021 I want a card that shows me:
Any ideas on how to lock the most recent available value and then sum per ID? Thanks
Solved! Go to Solution.
Hi @Anonymous
Please try
Card1 =
SUMX (
VALUES ( 'Table'[ID] ),
MAXX ( CALCULATETABLE ( TOPN ( 1, 'Table', 'Table'[Date] ) ), 'Table'[Column1] )
)
Hi @Anonymous
Please try
Card1 =
SUMX (
VALUES ( 'Table'[ID] ),
MAXX ( CALCULATETABLE ( TOPN ( 1, 'Table', 'Table'[Date] ) ), 'Table'[Column1] )
)
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 19 | |
| 11 | |
| 10 | |
| 6 | |
| 6 |