cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Question about filtering

Hi guys, new user here.

 

I'm still new in Power BI, and learning the ropes, but I have this visualization problem that just don't find how to get the way I want.

 

The thing is this: I have in my canvas a table that show multiple columns and calculations. The columns are a list with the Clients who where sold, and  differente measures that show calculated data of what was sold to them. Everything works great and shows the right values.

As my data is organized by dates and by vendors, I use the Visual Levels Filters to show only the data relevant to one vendor and one month of the year. The problem is that my column tha shows the list of the clients, whe I apply the filter of month/vendor, only shows the clients who bought something that particular month, and not the complete list of clients that vendor has associated. 

I want to show the full list, becasue the calculations has Conditional Formatting for painting red blank rows, and I want the sales manager to be able to see all the clients that didn't buy anything that month.

 

Any ways of achieving this?

 

3 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Super User I
Super User I

Re: Question about filtering

@alvayag

to show blank data i usually create an if isblank on my measure

for example

 

sales =
IF ( ISBLANK ( SUM ( table[values] ) )0SUM ( table[values] ) )

 

this usually forces a 0 value when empty and will bring back the data for everything, but i m not sure if thats the best way to do.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Highlighted
New Member

Re: Question about filtering

Well, I feel like an idiot now.

Thinking about relations, the problem was the way my data was organized.

 

What I did was make another Excel file with a table containing a column with the names of the clients (no duplicates), then I made a relationship in Power BI and use this clients table as my filter.

Now it shows the data the way I want.

 

Thank you for all the trouble, vanessafvg!

View solution in original post

Highlighted
Community Champion
Community Champion

Re: Question about filtering

@alvayag

 

You can also create The Clients Table in DAX:

 

in Modeling-New Table

 

Clients=Distinct(TableName[ClientColumn])

 

and related.




Lima - Peru

View solution in original post

6 REPLIES 6
Highlighted
Super User I
Super User I

Re: Question about filtering

@alvayag can you put some screen shots of the issue and also post a picture of your relationship view





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
New Member

Re: Question about filtering

Sure thing.

In the report view, that table show must have 28 clients (the clients associated with that vendor), but shows only the clients that actually bought something that month.

I want the full list.

I tried with the option "Show Items with no data" in the Values, but with no luck...

 

 

Powerbi1.JPGPowerbi2.JPG

Highlighted
Super User I
Super User I

Re: Question about filtering

@alvayag

to show blank data i usually create an if isblank on my measure

for example

 

sales =
IF ( ISBLANK ( SUM ( table[values] ) )0SUM ( table[values] ) )

 

this usually forces a 0 value when empty and will bring back the data for everything, but i m not sure if thats the best way to do.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Highlighted
New Member

Re: Question about filtering

Well, I feel like an idiot now.

Thinking about relations, the problem was the way my data was organized.

 

What I did was make another Excel file with a table containing a column with the names of the clients (no duplicates), then I made a relationship in Power BI and use this clients table as my filter.

Now it shows the data the way I want.

 

Thank you for all the trouble, vanessafvg!

View solution in original post

Highlighted
Community Champion
Community Champion

Re: Question about filtering

@alvayag

 

You can also create The Clients Table in DAX:

 

in Modeling-New Table

 

Clients=Distinct(TableName[ClientColumn])

 

and related.




Lima - Peru

View solution in original post

Highlighted
New Member

Re: Question about filtering

Thanks for the tip!

 

Helpful resources

Announcements
Super Users of the Quarter - Q2 2020

Super Users of the Quarter - Q2 2020

Who are our Super User Superstars? Who made it to the top of the leaderboards? Get the answers!

June 2020 Community Highlights

June 2020 Community Highlights

Featured community members, changes to the Community, and more! Read up on recent Power BI community news.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Kudoed Authors