Forum Discussion
how to replace blank with zero in a metrix
in your original DAX, you set period title is 05, is that May? Your screenshot shows the result of Jan.
What I want is :
1. This matrix should show latest period information as we proceed further. Like P6 started now and so on.
2. This formula works fine for me but it shows blank. This is basically that combination rows are not present in the data for that day. I want to show 0 when no values.
3. As soon as i apply condition or look to catch this scnarios. All values coming as 0 and metrix started showing values from P1 to P6.
- ryan_mayu5 years ago
Super User
have you tried to modify the last part of DAX
iF(not(isblank(monthlysales)),monthlysales,0)
- nayan28apr5 years ago
Helper I
Thanks for the reply.
Yes, i tried this initially but not worked as well.
IF(NOT(ISBLANK(MonthlySales)),MonthlySales,0)
As soon as I pass zero, all becomes zero.- ryan_mayu5 years ago
Super User
can you share the pbix file after removing sensitive data?