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.
I have the below report and need the report to only show the most recent rows for each country/carrier, so as an example it would show the 2 rows highlighted. I have searched on here and found a few similar questions, but nothing that i can re-use.
Any ideas? Thanks in advance.
Solved! Go to Solution.
Hi, @StuartSmith
Based on your description, I created data to reproduce your sceanrio. The pbix file is attached in the end.
Table:
You may create a measure as below.
Visual Control =
var tab =
SUMMARIZE(
ALL('Table'),
'Table'[Country],
'Table'[Carrier],
"LastDate",
MAX('Table'[Explicit Invoice Ymv])
)
var _date =
MAXX(
FILTER(
tab,
[Country]=SELECTEDVALUE('Table'[Country])&&
[Carrier]=SELECTEDVALUE('Table'[Carrier])
),
[LastDate]
)
return
IF(
SELECTEDVALUE('Table'[Explicit Invoice Ymv])=_date,
1,0
)
Finally you need to put the measure in the visual level filter to get the result.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Do you want this at the leve of the Query Editor or only at the level of the visual?
Hi, @StuartSmith
Based on your description, I created data to reproduce your sceanrio. The pbix file is attached in the end.
Table:
You may create a measure as below.
Visual Control =
var tab =
SUMMARIZE(
ALL('Table'),
'Table'[Country],
'Table'[Carrier],
"LastDate",
MAX('Table'[Explicit Invoice Ymv])
)
var _date =
MAXX(
FILTER(
tab,
[Country]=SELECTEDVALUE('Table'[Country])&&
[Carrier]=SELECTEDVALUE('Table'[Carrier])
),
[LastDate]
)
return
IF(
SELECTEDVALUE('Table'[Explicit Invoice Ymv])=_date,
1,0
)
Finally you need to put the measure in the visual level filter to get the result.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@StuartSmith , use these with region, countru carrier
measures
last No of SIM = lastnonblankvalue(table[explict Invoice YMv] , max(Table[No of SIM]))
last net amount = lastnonblankvalue(table[explict Invoice YMv] , sum(Table[net amount]))
use max of table[explict Invoice YMv]
Hi @StuartSmith - you can create a Top N filter on that date field. Select the visual, then the Filter Pane.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingCheck 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 |
|---|---|
| 45 | |
| 42 | |
| 41 | |
| 21 | |
| 18 |