Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Amardeep100115
Post Prodigy
Post Prodigy

Currant month value if month or any slicer option is not selected

Sample Date 

 

Hello super users,

 

i wish to have a distict count of customer ID, like i have shared sample data but here i wish to have data like if there is no option selected then the count of distict count should be show for currant month and if i select month/region/City or any of each slicer the count should be display the value accordingly. 

 

Please help 

 

Amardeep Bhingardeve
2 REPLIES 2
Amardeep100115
Post Prodigy
Post Prodigy

Hi @amitchandak 

 

Thank you for your reply but,

 

i am using below DAX for having the result but when i select it shows aveage of that Fiscal year. instade of currant month of fiscal year.

 

Measure 2 =
VAR _currentmonth=CALCULATE(MAX('Fiscal Calendar'[FiscalYear]),FILTER('Active Headcount',[ActiveHeadcount HR])) return
IF(HASONEVALUE('Fiscal Calendar'[Month]),[ActiveHeadcount HR],CALCULATE([ActiveHeadcount HR],FILTER('Fiscal Calendar','Fiscal Calendar'[FiscalYear]= _currentmonth)))
 
 
what i want if i have selected fiscalYear i.e. FY 2020 then visual should display value for currant month and if i select FY2019 the it should display Sept 2019 values
 
and also acording to other slicer that value should change like if i select city the citywise data should display and acording to other slicers as well 
 
hope i am clear on my results
 
 
Amardeep Bhingardeve
amitchandak
Super User
Super User

If you take distinctcount(Table[CutsomerID]), it should do that and it will also respond to the filter.

 

If you always without filter

calculate(distinctcount(Table[CutsomerID]),all(Table))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors