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.
Hi all. i have some data that looks like this
DATE REVENUE
August 100
September 150
October 250
This is cumulative and i want to see the difference from the previous month. so it should be
August=100, September = 50, December =100
How do i do that?
Solved! Go to Solution.
When i do that i get a table of multiple values was supplied when a single value was expected. any thoughts?
@Anonymous change you date column data type date and enter valid date, may be 1st of every month.
Add date dimension in your model, there are many posts on how to add one
set relationship between date dimension and your transaction table
from here everything will be super easy by adding measure, you can do all this in one measure as well.
Total Revenue = SUM ( Table[Revenue] ) PM Revenue = CALCULATE ( [Total Revenue], PREVIOUSMONTH( DateDimension[Date] ) ) Difference = [Total Revenue] - [PM Revenue]
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.
you mean something like that?
https://radacad.com/create-a-date-dimension-in-power-bi-in-4-steps-step-1-calendar-columns
User | Count |
---|---|
70 | |
64 | |
61 | |
49 | |
28 |
User | Count |
---|---|
117 | |
81 | |
65 | |
55 | |
43 |