cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Tim1234567890
Frequent Visitor

SUM of all [(Count of combination of values in column 1 & 2) >=1 should give me the value 1]

Hello all,

 

im fairly new to this programm so this might be the easiest thing and im just too stupid.

I'm looking basically for the in the subject described formula in dax but just cant seem to get it.

SUM of all [(Count of combination of values in column 1 & 2) >=1 should give me the value 1]

But because the Combination of value in column 1 & column 2 could exist multiple times, this needs to be excluded.

Further: in the end I need 1 result that should be giving me the information: the combination of those values exists exactly 5 times.

 

Many thanks in advance!

 

Best regards

1 ACCEPTED SOLUTION
Anonymous
Not applicable

You just take distinct count of any column...it will return you value 1 for each duplicate combinations...
Just drag above two columns in table visual...n drag the measure...it will return 8 and 10 for above respective datasets.

In case you want to show it it card visual, use below measure.


Measure= sumx(summerize(table,table[column1],table[column2],"total",distinctcount(table[column2])),[total])

Thanks and regards,
Pravin Wattamwar

If it resolves your problem mark it as a solution and give Kudos.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Share sample data and expected output

This is basically what the dataset looks like:

 

29.01.2020Max Mustermann
29.01.2020Peter Müller
22.01.2020Max Mustermann
23.01.2020Max Mustermann
24.01.2020Max Mustermann
27.01.2020Max Mustermann
20.01.2020Max Mustermann
21.01.2020Max Mustermann
22.01.2020Max Mustermann
27.01.2020Max Mustermann

In this case I would want to have the output 8.

 

 

29.01.2020Max Mustermann
29.01.2020Peter Müller
27.01.2020Max Mustermann
24.01.2020Peter Müller
24.01.2020Max Mustermann
23.01.2020Max Mustermann
22.01.2020Max Mustermann
21.01.2020Peter Müller
21.01.2020Max Mustermann
20.01.2020Max Mustermann

This table on the other hand should give me the output 10.

 

The dates wont neccessary come from my source in any specific order. (thats why I once have an order and once not)

Anonymous
Not applicable

You just take distinct count of any column...it will return you value 1 for each duplicate combinations...
Just drag above two columns in table visual...n drag the measure...it will return 8 and 10 for above respective datasets.

In case you want to show it it card visual, use below measure.


Measure= sumx(summerize(table,table[column1],table[column2],"total",distinctcount(table[column2])),[total])

Thanks and regards,
Pravin Wattamwar

If it resolves your problem mark it as a solution and give Kudos.

Awesome this worked, many many thanks!!

 

Best regards,

Tim

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors