Forum Discussion
Show Full Quarters when I have daily data
- 7 years ago
Complete Qtr = if(DATEDIFF(Dates[Date],TODAY(),QUARTER) >=3,"True","False")
Create a column like that.
In case you do want show Sep. As it is half, we need to get last month-end date
This is my date table (image below). I added a column named "DateWithData" that I use to indicate the last month with data in my fact table (Revenue). Now I am trying to add a new column where it says True if the quarter is full or False if the quarter is not full yet. In this case Q2/2019 in "FiscalQtrYear" is not full because I have data until october and it ends in december.
May be there´s a simple way to do the same, I just need to show complete quaters in my visualizations and slicers.
Now I am getting this in my report:
But the problem is that Q2 has data for only 1 month (october), so I don´t want to see it in my slicer. I only want to see completed quarters, meaning there´s data for the three months of the quarter. The fact table is loaded when all data for one month is available, so I always have data for the whole month.
Complete Qtr = if(DATEDIFF(Dates[Date],TODAY(),QUARTER) >=3,"True","False")
Create a column like that.
In case you do want show Sep. As it is half, we need to get last month-end date
- JOKA7 years ago
Advocate I