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
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
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.