The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello
Is there dax formula that helps me to count the days between to dates but based on the a selection used on a slicer (dates), or the number of days in a month (selected in a slicer).
Kind regards
Omar Octaviano
Solved! Go to Solution.
Try this measure:
_NumDays =
VAR _minDate = MINX('Calendar', 'Calendar'[Date])
VAR _maxDate = MAXX('Calendar', 'Calendar'[Date])
return DATEDIFF(_minDate, _maxDate, DAY) + 1
See the attached file for more info.
Try this measure:
_NumDays =
VAR _minDate = MINX('Calendar', 'Calendar'[Date])
VAR _maxDate = MAXX('Calendar', 'Calendar'[Date])
return DATEDIFF(_minDate, _maxDate, DAY) + 1
See the attached file for more info.
Thanks a lot
It works great.