cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kcwilsonii
Helper I
Helper I

filter list is showing duplicate values and not a distinct list

I have PowerBI test project I am working on

 

Specifics

 

  1) connected to MOLAP cube in SQL server

 

  2) Dimension is a Zip Code lookup with Zip, City, State..et.

 

 

Problem is when I try to add State as a Filter the filter adds a state value for every zip code. It's not applying a distinct to the 

values. So I see NY like ten times in the list for the filter. This even happens if I try to add it as a slicer.

 

Am I missing something? This works in Excel just fine

1 ACCEPTED SOLUTION

Ok figured out the problem... In an attempt to clear the warnings I get upon processing the cube the key column was setup as Zip, State. This resulted in a listing that shows a repeated value for every zip since it thinks that is the Key column for that field.

 

I had trouble clearing the data field though and kept getting new error messages when I tried processing the dimension.

The only way to recover was to remove the the field from the dimension then add it back. I then had to reprocess the dimension and the data cube

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @kcwilsonii,

 

Can you share us some detail content to help us clearly your issue?

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

added filter for Geography of State and the list every matching value for every zip codeadded filter for Geography of State and the list every matching value for every zip code

Like this, I added a filter for state from my ZIp code lookup and it repeats the value for every matching zip. The list should at minimum come back with a distinct list and it's not doing that.

 

This is connection to a data cube in SQL server Analysis server with a dimension for Zip Codes

Ok figured out the problem... In an attempt to clear the warnings I get upon processing the cube the key column was setup as Zip, State. This resulted in a listing that shows a repeated value for every zip since it thinks that is the Key column for that field.

 

I had trouble clearing the data field though and kept getting new error messages when I tried processing the dimension.

The only way to recover was to remove the the field from the dimension then add it back. I then had to reprocess the dimension and the data cube

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

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!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors