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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.