Forum Discussion
Measurement by Month
- 4 years ago
Hi, Anonymous
Obviously, the February data above contains data from January. You need to try to make the January measure calculate to 0 when it encounters the February time.
You can either recreate the measure, or add a judgment condition to the above measure when calculating it,
for example:
IF([month]="January",[Percentage Idle Sum (JAN)],0)
Or, please consdier sharing some dummy data and draw a simple picture to show your expected visual , then I can try to look into it to come up with a more accurate measure.
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Anonymous , Based on what I got, you need measure that give you % by month. You have measures for each month like Jan /Feb , that will not work.
Please share measure formula
- Anonymous4 years agoNot applicablePercentage Idle Sum (JAN) =VAR Totwork=SUMX(JAN,HOUR(JAN[Idle]) + MINUTE(JAN[Idle])/60)VAR ToTalAll=SUMX(JAN,HOUR(JAN[Idle]) + MINUTE(JAN[Idle])/60 + HOUR(JAN[Working ]) + MINUTE(JAN[Working ])/60)VAR final =(Totwork/ToTalAll)*100RETURNfinalPercentage Working Sum (JAN) =VAR Totwork=SUMX(JAN,HOUR( JAN[Working ]) + MINUTE( JAN[Working ])/60)VAR ToTalAll=SUMX(JAN,HOUR( JAN[Idle]) + MINUTE( JAN[Idle])/60 + HOUR( JAN[Working ]) + MINUTE( JAN[Working ])/60)VAR final =(Totwork/ToTalAll)*100RETURNfinal
- amitchandak4 years ago
Super User
Anonymous , Are these snapshot tables ?
each month you have data for the last n months. What is the expected output?
- Anonymous4 years agoNot applicable
I expected each months have the percentage of working and idle