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, Power BI Newbie here,
I am trying to create a measure that counts the rows of the rolling 365 days' record:
Below is my DAX:
Thank you in advance!
Solved! Go to Solution.
Hi Tom,
I went back and check my data and realized I only pulled 2021's data from 1/1/2021 to 9/14/2021. I fixed my query and pulled the whole year's data and now the solution works.
Thank you so much!
Hey @Jayrx7 ;
please try this statement:
CALCULATE(COUNTROWS('CFS'), DATESINPERIOD('CFS'[DATES to USE], CALCULATE(MAX('CFS'[DATES to USE])), -365, DAY))
Hopefully, this provides what you are looking for.
Regards,
Tom
Thank you Tom.
I tried your solution, but it is giving me the same output as what I had. It doesn't go past 1/1/2022 into 2021's data somehow.
Hey @Jayrx7 ,
please create a pbix file that contains sample data but still reflects your data model (tables, calculated columns, relationships, and measures). Upload the pbix to onedrive, google drive, or dropbox and share the link. If you are using Excel to create the sample data instead of the manual input method share the Excel file as well.
Regards,
Tom
Hi Tom,
I went back and check my data and realized I only pulled 2021's data from 1/1/2021 to 9/14/2021. I fixed my query and pulled the whole year's data and now the solution works.
Thank you so much!
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 |
---|---|
105 | |
93 | |
75 | |
62 | |
50 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |