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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
ianwuk
Helper III
Helper III

How to show data when only one column data changes?

I have data that looks like this:

 

License               ID         Date

12334                 123      7/7/17

45434                 456      6/7/17

67834                 123      5/7/17

 

As you can see, the same license key has two different ID numbers on two different dates (in UK format).

 

How can I show only those ones in a report? So only when the same license has one or more different ID?

 

Thanks.

 

2 ACCEPTED SOLUTIONS
fhill
Resident Rockstar
Resident Rockstar

You may need to create a copy of your data first, but does this help?  Once you 'Count' your grouped data, sort on that Counted valued >= 2 in a filter...

 

https://community.powerbi.com/t5/Desktop/Displaying-rows-with-a-duplicate-same-column-value/td-p/683...

 




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




View solution in original post

fhill
Resident Rockstar
Resident Rockstar

When you first import you data into PowerBI, choose EDIT instead of OK.  Or you can hit 'Edit Queries' from the Home Tab.  This takes you into the Query Editor.  From here, highlight your LicenseKey column, and choose 'Keep Rows' 'Keep Duplicates' from the ribon.  This will only keep rows with duplicate values.  Just make sure LicenseKey is clicked and highlighted first.

 

FOrrest




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




View solution in original post

7 REPLIES 7
fhill
Resident Rockstar
Resident Rockstar

You may need to create a copy of your data first, but does this help?  Once you 'Count' your grouped data, sort on that Counted valued >= 2 in a filter...

 

https://community.powerbi.com/t5/Desktop/Displaying-rows-with-a-duplicate-same-column-value/td-p/683...

 




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




Thanks for this fhill!

 

I will give it a try next week and update here if I have any more questions.

Hi @ianwuk

 

Please add the following calculated column to your table (and adjust the name of the table to yours)

 

License Duplicates = CALCULATE(
                            DISTINCTCOUNT('Table1'[License]),
                            FILTER(
                                ALL('Table1'),
                                'Table1'[ID] = EARLIER(Table1[ID])
                                )
                               )

This will return a number that indicates how many other distinct licenses share the same ID which you can use in a filter.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Hello @Phil_Seamark, I tried what you suggested but I cannot get it to work.  I think I am doing it wrong.

 

Here is a better example of what I want to do.

Datasample.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

How can I filter it so that only license keys in the licensekey column that are highlighted above appear because the license key is duplicate?

 

Many thanks.

 

Ian

 

 

 

 

 

 

fhill
Resident Rockstar
Resident Rockstar

When you first import you data into PowerBI, choose EDIT instead of OK.  Or you can hit 'Edit Queries' from the Home Tab.  This takes you into the Query Editor.  From here, highlight your LicenseKey column, and choose 'Keep Rows' 'Keep Duplicates' from the ribon.  This will only keep rows with duplicate values.  Just make sure LicenseKey is clicked and highlighted first.

 

FOrrest




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




Thank you so much @fhill!  That seems to have done the trick.  As you can tell, I am new to Power Bi.  As a separate question, do you know of any good Power Bi books I can read to learn more about how to use this program?

fhill
Resident Rockstar
Resident Rockstar

 

I would highly suggest signing up for the e-mail notifications from this training company.  They do several free training that are very in depth!  

 

http://pragmaticworks.com/Training/Details/Advanced-DAX

 

FOrrest

 




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.