Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Really appreciate help - how do I go from the top 2 tables to get the results of the table at the bottom?
Basically it is just a month-to-month change in value, but ... DAX is hard...
Thanks a lot!
Solved! Go to Solution.
Measure =
VAR _currentRevenue = CALCULATE(SUM(Customer[Revenue]))
VAR _selectedDate = MAX(Customer[Month])
VAR _prevDate = CALCULATE(MAX(Customer[Month]),Customer[Month]< _selectedDate)
VAR _prevRevenue = CALCULATE(SUM(Customer[Revenue]),ALL(Customer[Month]),Customer[Month]=_prevDate)
RETURN IF(_prevRevenue = 0 ,1, (_currentRevenue - _prevRevenue)/_prevRevenue)
Measure =
VAR _currentRevenue = CALCULATE(SUM(Customer[Revenue]))
VAR _selectedDate = MAX(Customer[Month])
VAR _prevDate = CALCULATE(MAX(Customer[Month]),Customer[Month]< _selectedDate)
VAR _prevRevenue = CALCULATE(SUM(Customer[Revenue]),ALL(Customer[Month]),Customer[Month]=_prevDate)
RETURN IF(_prevRevenue = 0 ,1, (_currentRevenue - _prevRevenue)/_prevRevenue)
Thanks so much!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
22 | |
10 | |
10 | |
9 | |
7 |