Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have a measure:
calculate(min(FACTTimeSheet[FKProjTransDate]),TimeSheet[ApprovalStatus]="Posted")
but the column FKProjTransDate is an INT, not a Date. So it will return something like 20220912; I'd like to get it formatted as a date.
The Calendar table connects to FACTTimeSheet, and has a corresponding column for 2022-09-12 as a Date - is there a performant way to bring down the actual Date from the Calendar table, into this measure? I think I've done this before long ago...
The reason I'm not just making an extra column in Date Format:
@mmace1 or try this measure:
calculate(min(DateTable[Date Column]),TimeSheet[ApprovalStatus]="Posted",FKProjTransDate)
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@mmace1 Maybe:
Measure =
VAR __Int = calculate(min(FACTTimeSheet[FKProjTransDate]),TimeSheet[ApprovalStatus]="Posted")
VAR __Year = LEFT(__Int & "",4) + 0
VAR __Day = RIGHT(__Int & "",2) + 0
VAR __Month = MID(__Int & "",5,2) + 0
RETURN
DATE(__Year, __Month, __Day)
User | Count |
---|---|
94 | |
86 | |
78 | |
70 | |
63 |
User | Count |
---|---|
114 | |
101 | |
97 | |
66 | |
59 |