Forum Discussion
Broly221
3 years agoFrequent Visitor
previousmonth multiple values error
I have a Date table and I'm trying to display the previous month date for each dates. When I display the previousday it works fine : Problem is when I try to display the previous month inst...
Greg_Deckler
3 years agoCommunity Champion
Broly221 That's not how PREVIOUSMONTH works, PREVIOUSMONTH is intended to be used in conjunction with a CALCULATE statement. Try this instead:
Better Year to Date Total - Microsoft Power BI Community
You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000
Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008