March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
No. of Breaches Last Month = CALCULATE( COUNTROWS(Breaches), PREVIOUSMONTH('Fiscal Calendar'[Date]) )
Hi All
I am trying to calculate the number of rows in my table for last month only using a measure.
My DAX above is returning Blank, when there is a number
Any obvious error?
Thx in advance!
Solved! Go to Solution.
HI @ajay_gajree ,
You can try to use date function to manually defined date range filter instead to use time intelligence functions.
Time Intelligence "The Hard Way" (TITHW)
Regards,
Xiaoxin Sheng
HI @ajay_gajree ,
You can try to use date function to manually defined date range filter instead to use time intelligence functions.
Time Intelligence "The Hard Way" (TITHW)
Regards,
Xiaoxin Sheng
@ajay_gajree - PREVIOUSMONTH needs to have an input (filter context). If you put your calculation into a table with months, No. of Breaches in Month (straight COUNTROWS calculation) and No. of Breaches Last Month, you will be able to compare the values.
If you want to see the value in a card, you will need to filter/slice the page to the current month.
Hope this helps,
Nathan
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
93 | |
90 | |
86 | |
76 | |
49 |
User | Count |
---|---|
167 | |
149 | |
99 | |
73 | |
57 |