Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Need Help to fix the total value for 30 rolling days and 90 rolling days issue (Input date from Date slicer)
Formula :
Totallogin = var t=SUMMARIZE('userloggedinacc','userloggedinacc'[CountryCode],"UserDistinct",DISTINCTCOUNT(userloggedinacc[UserID] ))return SUMX(t,[UserDistinct])
30-Days Rolling = CALCULATE([Totallogin],DATESINPERIOD(dimdate[CalendarDate],MAX(userloggedinacc[LoggedInOn]),-30,DAY))
90-Days Rolling = CALCULATE([Totallogin],DATESINPERIOD(dimdate[CalendarDate],MAX(userloggedinacc[LoggedInOn]),-90,DAY))
I will appriciate any advice how to accomplish that.
Guys,
Thank you so much for your support, Have modified the below Dax formula
and it is working as expected both Matrix and cluster columnchart.
Formula :
Totallogin = var t=SUMMARIZE('userloggedinacc','userloggedinacc'[CountryCode],"UserDistinct",DISTINCTCOUNT(userloggedinacc[UserID] ))return SUMX(t,[UserDistinct])
30-Days Rolling = CALCULATE([Totallogin],
Filter (ALL(dimdate),
dimdate[CalendarDate] > MAX(dimdate[CalendarDate])-30 &&
dimdate[CalendarDate] <= MAX(dimdate[CalendarDate])
))
90-Days Rolling = CALCULATE([Totallogin],
Filter (ALL(dimdate),
dimdate[CalendarDate] > MAX(dimdate[CalendarDate])-90 &&
dimdate[CalendarDate] <= MAX(dimdate[CalendarDate])
))
Did you check relationship between the tables.
Hi Aditya,
Yes relationship is there with bussinesskey
okay, try to enble cross filter(Both), bcoz the dax you wrote is perfectly okay(jst check summerize dax again).
Hello Team,
Is someone able to help to fix this DAX Formula?
Thank you inadvance
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |