Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi expert,
I am stucking on to calculate cumulative unique count in DAX month on month basis some criteria,
please help me to get this done.
Thanks a ton in advance.
@Icey @Tanushree_Kapse @VahidDM @Anonymous @amitchandak @pbig @administrator @PBICommunity @PBCommunity
Raw data and summary below.
Please help me on this.
Thanks
Solved! Go to Solution.
Thanks VahidDM.
Basis on your logic , I have added on other criteria basis my data and have applied in my project is working . Got what I was looking for.
Hi @Anonymous
Try this measure:
Measure1 =
VAR _A =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Cust] ),
FILTER (
ALL ( 'Table' ),
'Table'[Months] < MAX ( 'Table'[Months] )
&& 'Table'[sales flag] = 1
)
)
RETURN
IF ( ISBLANK ( _A ), 0, _A )
output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Thank u so much for quick reply and looking correct . but while applying in my live data , not getting correct output
Sorry My data is at invoice level hence one customer can have mulitple records basis on their billing in same month but have to check the sales at customer level while counting in month.
like base raw data will be.
output will be same
Thanks VahidDM.
Basis on your logic , I have added on other criteria basis my data and have applied in my project is working . Got what I was looking for.
Thanks VahidDM.
Basis on your logic , I have added on other criteria basis my data and have applied in my project is working . Got what I was looking for.
User | Count |
---|---|
41 | |
27 | |
23 | |
18 | |
15 |
User | Count |
---|---|
54 | |
35 | |
19 | |
18 | |
15 |