The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello all,
I am using Power BI and I just need to retrieve the number value for the previous month.
As an example, we are currently in August, so I would like to use this function to bring me the value of 7.
I need this in order to do calculations with this value.
HI @Anonymous ,
YOu cna use the measure
Previou month value = IF (MONTH(MAX(Table10[Date])) = 1, 12 , MONTH(MAX(Table10[Date]))-1)
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
@Anonymous - Maybe something like:
MONTH(MAXX(PREVIOUSMONTH(...),[Date]))
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
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
19 | |
12 | |
9 | |
7 |