Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi.
I have the following data in a table...
The left hand column is week number. I want to create a measure that always returns the latest week only. I've been trying for a few hours and it's barely worth showing my efforts as I've got nowhere 🙂
Any help much appreciated
Solved! Go to Solution.
Try this:
First create a measure that will get your maximum week:
LatestWeek = CALCULATE(MAX('TableName'[YourWeekColumn]),ALL('TableName'))
Then create another measure:
LatestWeekFlag = LatestWeekFlag = IF(SELECTEDVALUE('TableName'[YourWeekColumn] = [LatestWeek], 1, 0)
Use it as a filter:
Proud to be a Super User!
Try this:
First create a measure that will get your maximum week:
LatestWeek = CALCULATE(MAX('TableName'[YourWeekColumn]),ALL('TableName'))
Then create another measure:
LatestWeekFlag = LatestWeekFlag = IF(SELECTEDVALUE('TableName'[YourWeekColumn] = [LatestWeek], 1, 0)
Use it as a filter:
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
80 | |
65 | |
52 | |
49 |
User | Count |
---|---|
212 | |
89 | |
79 | |
68 | |
60 |