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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Problem with distinct values

Hello good morning I have a problem to solve the following question, I have a table of customers that I would like to take only the different ones and break them by week and month, only when I get the different ones of the week it is ok, but when I take the month and I try to filter if two month, it returns me the difference of two accumulated months, and I want to add the two months as: 1 month equal 100 distinct, 2 months equal100 distinct, 1 plus 2 equal 200, only he brings 1 plus 2 equal 100 because they are the same customers.

 

sorry for my english

1 ACCEPTED SOLUTION
Payeras_BI
Solution Sage
Solution Sage

Hi @Anonymous ,

 

If I understood you correctly you have something like this:

 

Payeras_BI_0-1611867810245.png

 

And would like this instead:

 

Payeras_BI_1-1611867829330.png

If so adapt in the formula below the name of your 'Date table'[Month name column]:

 

 

# Customers =
SUMX (
    VALUES ( 'Date'[Month Name] ),
    CALCULATE ( DISTINCTCOUNT ( F_Pedido_Item_SC6010[C6_CLI] ) )
)

 

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

View solution in original post

5 REPLIES 5
Payeras_BI
Solution Sage
Solution Sage

Hi @Anonymous ,

 

If I understood you correctly you have something like this:

 

Payeras_BI_0-1611867810245.png

 

And would like this instead:

 

Payeras_BI_1-1611867829330.png

If so adapt in the formula below the name of your 'Date table'[Month name column]:

 

 

# Customers =
SUMX (
    VALUES ( 'Date'[Month Name] ),
    CALCULATE ( DISTINCTCOUNT ( F_Pedido_Item_SC6010[C6_CLI] ) )
)

 

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain
Anonymous
Not applicable

thank you! it's work 🙂 

 

Payeras_BI
Solution Sage
Solution Sage

Hi @Anonymous,

 

How does your visualization look like? Do you have a Date table? 

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain
Anonymous
Not applicable

I already have a table, calendar, and I need my client table to bring the different month but when I filter through the calendar table with two selected months it will bring the sum of those months instead of the two months.

Anonymous
Not applicable

Capture.PNG

sdsd.PNG

 

 

 

like this, the sum is not right, but why is he giving different in the 2 months together, and I need him to add the 2 months, but without removing the different ones, you have to take the different ones from each month and add

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.