We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hello All!
Im currently trying to write a Dax query to retrive the "Current Date" for the previous month in a scheduling Report.
Each Scheduled acticty has a Baseline date and a current date as seen below what I would like to do is write a measure to return the "Current Date" from the previous month into a new Column called (Previous Month)
Thanks for the Help in advance 🙂
Solved! Go to Solution.
You could create a measure like
Previous Month =
LOOKUPVALUE (
'Table'[Current Month],
'Table'[Activity ID], SELECTEDVALUE ( 'Table'[Activity ID] ),
'Table'[Reporting date], EOMONTH ( SELECTEDVALUE ( 'Table'[Reporting Month] ), -2 ) + 1,
BLANK ()
)
You are the best !!! Thank you so much ❤️
You could create a measure like
Previous Month =
LOOKUPVALUE (
'Table'[Current Month],
'Table'[Activity ID], SELECTEDVALUE ( 'Table'[Activity ID] ),
'Table'[Reporting date], EOMONTH ( SELECTEDVALUE ( 'Table'[Reporting Month] ), -2 ) + 1,
BLANK ()
)
Thank you for the fast response @johnt75 it seems to be working but not to the exact level, I still want to show other Activites if there isnt a Current date in the Previous month the measure seems to filter out the table
In the fields well, click on the down arrow next to Activity ID and choose "Show items with no data"
One last question the first activity dosent capture the previous months current date for some reason
Try using Power Query to change the type of the reporting date column to date rather than datetime. Its possible that there are some microseconds, not being displayed, which means the two values don't match
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 13 | |
| 10 | |
| 10 | |
| 6 | |
| 4 |