Forum Discussion

alvayag's avatar
alvayag
New Member
9 years ago
Solved

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 m...
  • vanessafvg's avatar
    vanessafvg
    9 years ago

    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.

  • alvayag's avatar
    alvayag
    9 years ago

    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!

  • Vvelarde's avatar
    Vvelarde
    9 years ago

    alvayag

     

    You can also create The Clients Table in DAX:

     

    in Modeling-New Table

     

    Clients=Distinct(TableName[ClientColumn])

     

    and related.