Forum Discussion
How to show data when only one column data changes?
- 9 years ago
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...
- 9 years ago
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
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.
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.
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
- fhill9 years agoResident 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
- ianwuk9 years agoHelper III
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?
- fhill9 years agoResident 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