The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi
I wish to get a count/distinctcount of currunt month of "PIN Code" if there is no Month/value selected in filter visual.
I have tried below formula in my base report but its not showing me correct value,
Please help
https://1drv.ms/u/s!Ai3rGPgy20kLwUsY5cG6RUA71nDt?e=lFOkYL
Solved! Go to Solution.
Hi @Amardeep100115 ,
Update your measure as below.
Measure 2 = var currentmonth = FORMAT(TODAY(),"mmmyyyy") return IF ( ISFILTERED ( Sheet4[month] ), DISTINCTCOUNT ( Sheet4[Pin No] ), CALCULATE ( DISTINCTCOUNT ( Sheet4[Pin No] ), FILTER ( Sheet4, FORMAT ( 'Sheet4'[As of date], "mmmyyyy" ) = "Jul2019" ) ) )
Hi @Amardeep100115 ,
Update your measure as below.
Measure 2 = var currentmonth = FORMAT(TODAY(),"mmmyyyy") return IF ( ISFILTERED ( Sheet4[month] ), DISTINCTCOUNT ( Sheet4[Pin No] ), CALCULATE ( DISTINCTCOUNT ( Sheet4[Pin No] ), FILTER ( Sheet4, FORMAT ( 'Sheet4'[As of date], "mmmyyyy" ) = "Jul2019" ) ) )
User | Count |
---|---|
71 | |
64 | |
62 | |
50 | |
28 |
User | Count |
---|---|
117 | |
75 | |
62 | |
55 | |
43 |