This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi
I have a table that shows 2 metrics by brand by month over a 12 month period.
I want to create a chart that only shows the most recent month's 2 metrics by brand.
I am struggling with the DAX - I tried to calculate the Latest Date but it doesn't like it because I have multipe rows with the same date?
So in the example below, I only want me chart to display Feb figures.
Any help would be apprecaited. Thank you.
Victoria
| Brand | Month | Category | Total |
| Brand1 | 01/01/2022 | Type1 | 140 |
| Brand1 | 01/01/2022 | Type2 | 120 |
| Brand2 | 01/01/2022 | Type1 | 93 |
| Brand2 | 01/01/2022 | Type2 | 77 |
| Brand1 | 01/02/2022 | Type1 | 180 |
| Brand1 | 01/02/2022 | Type2 | 157 |
| Brand2 | 01/02/2022 | Type1 | 98 |
| Brand2 | 01/02/2022 | Type2 | 87 |
Solved! Go to Solution.
Hi, @vicsinc
You can try the following methods.
Measure:
Measure =
IF (
SELECTEDVALUE ( Market[Month] )
= CALCULATE ( LASTDATE ( Market[Month] ), ALLSELECTED ( Market ) ),
1,
0
)
Put measure into the filter of the view and set it equal to 1.
https://docs.microsoft.com/dax/lastdate-function-dax
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @vicsinc
You can try the following methods.
Measure:
Measure =
IF (
SELECTEDVALUE ( Market[Month] )
= CALCULATE ( LASTDATE ( Market[Month] ), ALLSELECTED ( Market ) ),
1,
0
)
Put measure into the filter of the view and set it equal to 1.
https://docs.microsoft.com/dax/lastdate-function-dax
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
To add,
I thought maybe I could do it as a summarise but it errors. This is what I tried:
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 27 | |
| 26 | |
| 22 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 42 | |
| 42 | |
| 41 | |
| 21 | |
| 20 |