Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi Experts
How would you edit the following DAX measure to summarize the current period only based on column Month Year...and not show values for MAr 18, Jun 18 etc...previous months of the curreent year..
Taiwan Summary = SUMMARIZECOLUMNS ( 'Taiwan Calendar'[Month Year], 'Taiwan Calendar'[Country], "DaysinMonth", MIN ( 'Taiwan Calendar'[DaysinMonth] ), "WorkingDaysNumber", MIN ( 'Taiwan Calendar'[WorkingDays] ), "WorkingDaysLeft",MIN ('Taiwan Calendar'[Workdays Left in Month]), "Non-Working Days", SUM ( 'Taiwan Calendar'[Non-Working Days] ), "WorkingDaysPassed", MIN ( 'Taiwan Calendar'[Working Days Passed] ) )
Solved! Go to Solution.
@Anonymous Please give a try with this....
Taiwan Summary = SUMMARIZECOLUMNS ( 'Taiwan Calendar'[Month Year], 'Taiwan Calendar'[Country], FILTER('Taiwan Calendar', 'Taiwan Calendar'[Month Year] = FORMAT(TODAY(),"MMMM YYYY")), "DaysinMonth", MIN ( 'Taiwan Calendar'[DaysinMonth] ), "WorkingDaysNumber", MIN ( 'Taiwan Calendar'[WorkingDays] ), "WorkingDaysLeft",MIN ('Taiwan Calendar'[Workdays Left in Month]), "Non-Working Days", SUM ( 'Taiwan Calendar'[Non-Working Days] ), "WorkingDaysPassed", MIN ( 'Taiwan Calendar'[Working Days Passed] ) )
Hope this helps !! If not, then Sample data will be really helpful.
Proud to be a PBI Community Champion
@Anonymous Please give a try with this....
Taiwan Summary = SUMMARIZECOLUMNS ( 'Taiwan Calendar'[Month Year], 'Taiwan Calendar'[Country], FILTER('Taiwan Calendar', 'Taiwan Calendar'[Month Year] = FORMAT(TODAY(),"MMMM YYYY")), "DaysinMonth", MIN ( 'Taiwan Calendar'[DaysinMonth] ), "WorkingDaysNumber", MIN ( 'Taiwan Calendar'[WorkingDays] ), "WorkingDaysLeft",MIN ('Taiwan Calendar'[Workdays Left in Month]), "Non-Working Days", SUM ( 'Taiwan Calendar'[Non-Working Days] ), "WorkingDaysPassed", MIN ( 'Taiwan Calendar'[Working Days Passed] ) )
Hope this helps !! If not, then Sample data will be really helpful.
Proud to be a PBI Community Champion
i cannot give sample data but a image of the table... So from th eimage i wanrt to show only Oct 2018 line and nothing else...
Hi Expert
Solved the solution....using date but not MMMM, YYYY
Taiwan Summary = SUMMARIZECOLUMNS ( 'Taiwan Calendar'[Month Year], 'Taiwan Calendar'[Date], 'Taiwan Calendar'[Country], FILTER(ALL('Taiwan Calendar'),'Taiwan Calendar'[Date] = MAX('Taiwan Calendar'[Date])), "DaysinMonth", MIN ( 'Taiwan Calendar'[DaysinMonth] ), "WorkingDaysNumber", MIN ( 'Taiwan Calendar'[WorkingDays] ), "WorkingDaysLeft",MIN ('Taiwan Calendar'[Workdays Left in Month]), "Non-Working Days", SUM ( 'Taiwan Calendar'[Non-Working Days] ), "WorkingDaysPassed", MIN ( 'Taiwan Calendar'[Working Days Passed] ) )
User | Count |
---|---|
124 | |
108 | |
99 | |
65 | |
62 |
User | Count |
---|---|
137 | |
116 | |
102 | |
71 | |
61 |