Particle sum =
VAR A =
SUM ( ‘Particle_Raw data’[数量] )
VAR B =
EOMONTH ( TODAY (), 0 )
VAR C =
MIN ( ‘Particle_Raw data’[Date日期] )
VAR D =
IF ( C < B , A, blank() )
RETURN
D
Would like to check whether is it possible from as shown on the left in the picture like the picture on the right.
Aug 22 without any data. So it will not show 0 on Aug 22 but the data shown until July 22. Any idea on DAX calculation?
In order to show the value as “0” for current month. You’ll be required to have a date table inside your data model and then write the measure something like this -
I am trying to make Sep 22 to Dec 22 as blank but show in the visual. Can you please help to check the switch condition. As I still cannot get the result. TQ
Please provide the PBIX file so that members of the Forum can assist you in a better and efficient manner. It’s difficult to provide assistance just based on a piece of code without looking at the data structure which in turn involves a lot of guess work and therefore consumes the time of the Forum members as well as increases the length of the thread.
If your data contains any senstitive information than create a mock-up file by sanitizing the data. Below is the link of the blog as well as video provided for the reference about how to mask the sensitive data.