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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
lancersc
Helper I
Helper I

DistinctCount and AllExcept

Hi!


Below is the DAX forumula without date. I want the distinctcount without being affected by filters except for GL account type and Invoice line.

lancersc_0-1742903755520.png

Below is the counter, 67 is a distinctcount of all the rows which is affected by filter, and 89 is the distinct count with GL and Invoice filter, where the 89 value does not change when I pick any filters.

lancersc_2-1742903954546.png 

So in order to also get 67, I also need the date range to be added in the allexcept.

lancersc_1-1742903935976.png

Yes I get the Total rows correct 

lancersc_3-1742904007615.png

But when I pick a filter, the second number also changes

lancersc_4-1742904031875.png


This is my only current problem, the date.

This is the date filter btw

lancersc_5-1742904074276.png

 



1 ACCEPTED SOLUTION

Hello!

I can't share the PBIX file because it containts the company data BUT I figured it out. I made a separate Date table and made a relationship between the Main Table and Date Table.

Thanks anyways!

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @lancersc 
I'm glad to hear that your issue is resolved. Please accept it as the solution so it can help other community members with similar problems solve it faster.
Thank you.

Anonymous
Not applicable

Hi @lancersc 
Thank you for reaching out microsoft fabric community forum.
Could you please provide a more detailed explanation of the issue you are facing? Additionally, could you share a sample PBIX file to address this query more efficiently.
Thank you.


 

 

 

Hello!

I can't share the PBIX file because it containts the company data BUT I figured it out. I made a separate Date table and made a relationship between the Main Table and Date Table.

Thanks anyways!

Deku
Super User
Super User

Do you have a date dimesion used for the slicer?


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Not sure what that is but

lancersc_0-1742905437832.png

 

lancersc_1-1742905451282.png

 

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 Kudoed Authors