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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi all, I am new to Power BI and I need some help with DAX here. I have an existing table like this:
I need to create a new table based on column [CreatedDate], extracting the latest records for each Site. From the example above, the latest record for Site A is from 1/1/2024 and Site B from 11/1/2023, giving us the new table as follows:
In Kusto, we can achieve this easily with arg_max() operator. I wonder anyone can help me compose the DAX query here. It would be much appreciated.
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
expected result table =
CALCULATETABLE (
Data,
TREATAS (
GROUPBY (
Data,
Data[Site],
"@maxdate", MAXX ( CURRENTGROUP (), Data[CreatedDate] )
),
Data[Site],
Data[CreatedDate]
)
)
Hi,
Please check the below picture and the attached pbix file.
expected result table =
CALCULATETABLE (
Data,
TREATAS (
GROUPBY (
Data,
Data[Site],
"@maxdate", MAXX ( CURRENTGROUP (), Data[CreatedDate] )
),
Data[Site],
Data[CreatedDate]
)
)
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
7 | |
5 | |
4 | |
3 |
User | Count |
---|---|
12 | |
11 | |
10 | |
9 | |
8 |