Forum Discussion
obriaincian
Resolver I
4 years agoDATESINPERIOD not working
Hi All, I have a Power BI Dashboard where I want to count the number of distinct dates in the Expiry column but I also want to filter the Date column to display rows that are within the last 3 mo...
- 4 years ago
Hi obriaincian
Try this measure
last3Months 2 = CALCULATE ( DISTINCTCOUNT ( 'Data2'[Expiry Date] ), 'Data2'[Expiry Date] <> BLANK (), 'Data2'[Date] > EOMONTH(MAX(Data2[Date]),-3) )-1Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
amitchandak
Super User
4 years agoobriaincian , if that is the data type is date, the format does not matter. Make sure the date in fact is joined with the date of the date table.
Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4