Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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 🙂
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
81 | |
53 | |
37 | |
35 |