Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello,
I am stuck in achieving the following requirement. I am a building a calculated column A with the following calculations-
Column A= CALCULATE(SUM('TableA'[loan_cnt]),FILTER('TableA','TableA'[filter_criteria]="Cond.1"),FILTER('TableA',YEAR('TableA'[Date])=YEAR(TODAY())),FILTER('TableA',MONTH('TableA'[Date])=MONTH(NOW())))
This works fine but then it shows data aggregated to a month level(current month as i have specifed in my dax). But I want the data to be shown at day level. Also, I cant have filters. This is an MTD report.
Thanks,
Deeptha
Solved! Go to Solution.
@Anonymous,
Do you want to show data of current month in 2018(2018/02)? If so, create a measure instead of a calculated column using DAX below.
Measure = CALCULATE(SUM('TableA'[loan_cnt]),FILTER('TableA','TableA'[filter_criteria]="Cond.1"),FILTER('TableA',YEAR('TableA'[Date])=YEAR(TODAY())),FILTER('TableA',MONTH('TableA'[Date])=MONTH(NOW())))
There is an example for your reference.
Regards,
Lydia
@Anonymous,
Do you want to show data of current month in 2018(2018/02)? If so, create a measure instead of a calculated column using DAX below.
Measure = CALCULATE(SUM('TableA'[loan_cnt]),FILTER('TableA','TableA'[filter_criteria]="Cond.1"),FILTER('TableA',YEAR('TableA'[Date])=YEAR(TODAY())),FILTER('TableA',MONTH('TableA'[Date])=MONTH(NOW())))
There is an example for your reference.
Regards,
Lydia
That worked absolutely fine ! Thank you so much for your timely input 🙂
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
117 | |
101 | |
71 | |
61 |