Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 🙂
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
100 | |
81 | |
70 | |
62 |
User | Count |
---|---|
148 | |
116 | |
104 | |
90 | |
65 |