This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
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 May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 |