Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. 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!
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
86 | |
82 | |
70 | |
49 |
User | Count |
---|---|
143 | |
125 | |
108 | |
60 | |
55 |