Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi Everyone 🙂
For MTD i use following formula, but the problem is that when the value of orders are 0 in a month (for example March) it shows values of previous month instead of showing blank or 0. Could anyone help modify this Dax to show 0 or blank when there is no order in a month?
Solved! Go to Solution.
Hi @FR14 ,
Based on my testing, please try the following methods:
1.Create the simple table.
2.Create the new measure to calculate.
Order_MTD = IF(
ISBLANK(
CALCULATE(
SUM(OrderLine[Booking USD]),
DATESMTD(OrderLine[Date])
)
),
0,
CALCULATE(
SUM(OrderLine[Booking USD]),
DATESMTD(OrderLine[Date])
)
)
3.Drag the measure into the table visual. The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi @FR14 ,
try this ,
MTD BLANK = CALCULATE(SUM(OrderLine[Booking USD]),DATESMTD(OrderLine[Date])) + 0
hi @FR14 ,
try this ,
MTD BLANK = CALCULATE(SUM(OrderLine[Booking USD]),DATESMTD(OrderLine[Date])) + 0
Hi @FR14 ,
Based on my testing, please try the following methods:
1.Create the simple table.
2.Create the new measure to calculate.
Order_MTD = IF(
ISBLANK(
CALCULATE(
SUM(OrderLine[Booking USD]),
DATESMTD(OrderLine[Date])
)
),
0,
CALCULATE(
SUM(OrderLine[Booking USD]),
DATESMTD(OrderLine[Date])
)
)
3.Drag the measure into the table visual. The result is shown below.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
19 | |
14 | |
10 | |
10 | |
9 |
User | Count |
---|---|
15 | |
13 | |
12 | |
11 | |
10 |