Forum Discussion
Modelling data upto 3rd level based on Month
- 8 years ago
Hi Anonymous,
You can use Split Column feature in Query Editor to get three columns from Organization Unit:
Then create a calculated column to return month number:
MonthNum = SWITCH(TRUE(),'Table2'[Month]="JAN",1,'Table2'[Month]="FEB",2)
Then create a measure:
YTD = CALCULATE(SUM(Table2[Count]),FILTER(ALLSELECTED(Table2),'Table2'[MonthNum]<=MAX('Table2'[MonthNum])))
Best Regards,
Qiuyun Yu
Hi Anonymous,
You can use Split Column feature in Query Editor to get three columns from Organization Unit:
Then create a calculated column to return month number:
MonthNum = SWITCH(TRUE(),'Table2'[Month]="JAN",1,'Table2'[Month]="FEB",2)
Then create a measure:
YTD = CALCULATE(SUM(Table2[Count]),FILTER(ALLSELECTED(Table2),'Table2'[MonthNum]<=MAX('Table2'[MonthNum])))
Best Regards,
Qiuyun Yu
- Anonymous8 years agoNot applicable
Hi v-qiuyu-msft,
Thanks this work, But I have months for various year, so how to classify that like I get values based on year. Right now with this formulae, It adds the data for Jan month for 2017 and 2018 both. I need to keep the year wise value seperate and calculate YTD for different year.
Please help me on that.
Thanks,
ankku- v-qiuyu-msft8 years ago
Community Support
Hi Anonymous,
This should be a different requirement from the original post. I would suggest you post a new thread in Desktop forum. Our community support team members will help you. :smileyhappy:
Best Regards,
Qiuyun Yu