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.
i created a measure to count the total number of orders a customer did on the months, but i saw the total is wrong. I need help to correct this total (1+1+1+1+1+2+2 =9)
This is my measure
Thanks
Solved! Go to Solution.
I was close, but this will work:
.Measure1 = SUMX( VALUES ( Calendario1), CALCULATE( IF ( MAX ( 'Calendario1'[Date] ) <= EOMONTH ( TODAY (), -13 ), BLANK (), IF ( ISBLANK ( DISTINCTCOUNT ( fOrder[K_NumberOrder] ) ), 0, DISTINCTCOUNT ( fOrder[K_NumberOrder] ) ) ) ) )
Without seeing the actual data, you need to add in SUMX( Values( Date[Month]) to your measure. Maybe something like this, but more of a guess:
.Measure1 = IF ( MAX ( 'Calendario1'[Date] ) <= EOMONTH ( TODAY (); -13 ); BLANK (); IF ( ISBLANK ( DISTINCTCOUNT ( fOrder[K_NumberOrder] ) ); 0; SUMX ( VALUES ( Date[Month]); DISTINCTCOUNT ( fOrder[K_NumberOrder] ) ) ) )
I was close, but this will work:
.Measure1 = SUMX( VALUES ( Calendario1), CALCULATE( IF ( MAX ( 'Calendario1'[Date] ) <= EOMONTH ( TODAY (), -13 ), BLANK (), IF ( ISBLANK ( DISTINCTCOUNT ( fOrder[K_NumberOrder] ) ), 0, DISTINCTCOUNT ( fOrder[K_NumberOrder] ) ) ) ) )
Worked, thanks a lot @Anonymous
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 |