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 moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hello Guys,
Need help !!!
I will be using DIrect query in power bi and my data source is azure synapse.
i need to calculate month over month % in desktop.
I have order date and sales. so based on order date o create one calculated column as Order Month Year to show in column chart.
when I try to use below dax using dateadd, previous month the value shows for mom% is blank.
mom% =
var currentmonth = sum(sales)
var previousmonth = calculate(sum(Sales), dateadd(orderdate, -1, month)
return
divide((currentmonth - previousmonth), previousmonth)
in the place of dateadd i used previous month but it gives me black value also when i try to only create previous month sales and added that measure with my order year month column it gives me blank.
Note- when I'm using Order Date column not the year Month the pure date then the values is appeared
I don't know why this happening. will you help me
Sample data:
| Order Month Year | Sales |
| Jan-17 | 10 |
| Feb-17 | 20 |
| Mar-17 | 30 |
| Apr-17 | 40 |
| May-17 | 50 |
| Jun-17 | 60 |
| Jul-17 | 70 |
| Aug-17 | 80 |
| Sep-17 | 90 |
| Oct-17 | 100 |
| Nov-17 | 110 |
| Dec-17 | 120 |
| Jan-18 | 130 |
| Feb-18 | 140 |
| Mar-18 | 150 |
| Apr-18 | 160 |
| May-18 | 170 |
| Jun-18 | 180 |
You need to use REMOVEFILTERS on whichever table / column you are using in the visuals.
Can you please help me with DAX, or how we can modified above dax
If you're using columns from the date table in your visuals you could do something like
MoM % =
VAR CurrentMonth =
SUM ( Sales[Amount] )
VAR PrevMonth =
CALCULATE (
SUM ( Sales[Amount] ),
DATEADD ( Sales[Order Date], -1, MONTH ),
REMOVEFILTERS ( 'Date' )
)
RETURN
DIVIDE ( CurrentMonth - PrevMonth, PrevMonth )
Check out the April 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 |
|---|---|
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 6 | |
| 5 | |
| 4 |