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
Niunias
Frequent Visitor

Count unique cells with the same values

Hello,

 

I am trying to figure out a way to count unique cells with  values. I merged 6 files and all of them have multiple sheets with the same layouts. It contains statuses of the tests, files are divided per country. I tried to build up some visualizations and measurments to show how many steps are already passed, failed for each country but I need check one more thing which is the purpose of my post.

 

Let me show you an example. Let assume that this a data from only two merged files :

 

Source Sheet TestScenario Result
 Spain      x               asd            fail
 Spain      x               qwe          pass
 Spain      x               rts             pass
 Italy        x               asd           pass
 Italy        x               qwe         pass
 Italy        x                rts           pass

 

I would like to measure how many results are pass and fail BUT if any of the same step is fail in other source, I would like to count it as fail.  As you can see Test Scenario "asd" in Spain is fail but in Italy is pass so I would like to count this step as fail.

I have 6 files so far with 993 test scenarios per file.  In the end I would like go through all of the steps  in all files and get result for instance : 500 pass, 493 fail in total, I dont want to count every steps in every source seperately/

 

Thank you

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @Niunias 

Please check the below picture and the sample pbix file's link down below.

All measures are in the sample pbix file.

Picture2.png

 

https://www.dropbox.com/s/eoyy7prq9f3c3mv/niuniasv2.pbix?dl=0 

 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi, @Niunias 

Please check the below picture and the sample pbix file's link down below.

All measures are in the sample pbix file.

Picture2.png

 

https://www.dropbox.com/s/eoyy7prq9f3c3mv/niuniasv2.pbix?dl=0 

 

 

Hi, My name is Jihwan Kim.

 

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

Linkedin: linkedin.com/in/jihwankim1975/

Twitter: twitter.com/Jihwan_JHKIM

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Thank you, thank you so much 🙂

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.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

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