Forum Discussion
dont show current and previous month until certain date
Hello,
I have a bar chart (over 12 month) for the following measure:
This is quite easy to implement if you can ensure daily updates to the data source. Create a calculated column that checks the day of the month for "Today" and can act as a true/false flag for your other measures.
Pseudo logic: for each date
if (yearmonth(date)<yearmonth(today) && day(today)>14 á yearmonth(date)<yearmonth(today)-1,1,0)
2 Replies
- lbendlin
Super User
This is quite easy to implement if you can ensure daily updates to the data source. Create a calculated column that checks the day of the month for "Today" and can act as a true/false flag for your other measures.
Pseudo logic: for each date
if (yearmonth(date)<yearmonth(today) && day(today)>14 á yearmonth(date)<yearmonth(today)-1,1,0)
- Pikachu-Power
Impactful Individual
Thank you very much! yearmonth doesnt exist... so I used the normal date in combination with EOMONTH.