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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
wapGO
New Member

MD cube - Hierarchy filtering not working

I've Multidimensional (MD) cube with parent-child hierarchy dimension.

I put 2nd hierarchy level members into a table visual. When I was trying to filter by one of the members - nothing was changed in visual. Do you know is it a bug or something wrong in my dimension?

Screen and query caught by profiler below.

   

EVALUATE
  TOPN(
    501,
    CALCULATETABLE(
      FILTER(
        KEEPFILTERS(
          SUMMARIZE(VALUES('PnL'), 'PnL'[Level 02.UniqueName], 'PnL'[Level 02.Key0], 'PnL'[Level 02])
        ),
        OR(
          NOT(ISBLANK('PnL'[Level 02.UniqueName])),
          NOT(ISBLANK('PnL'[Level 02.Key0]))
        )
      ),
      KEEPFILTERS(
        FILTER(
          KEEPFILTERS(VALUES('PnL'[Level 02.UniqueName])),
          'PnL'[Level 02.UniqueName] IN {"[PnL].[Item].&[PNL#Discounts####]"}
        )
      )
    ),
    'PnL'[Level 02.Key0],
    1,
    'PnL'[Level 02],
    1,
    'PnL'[Level 02.UniqueName],
    1
  )

ORDER BY
  'PnL'[Level 02.Key0], 'PnL'[Level 02], 'PnL'[Level 02.UniqueName]

  pbi-hierarchy.PNG

 

1 REPLY 1
v-lili6-msft
Community Support
Community Support

HI, @wapGO 

I have tested on my side, but not reproduce the issue.

Could you share your sample pbix file for us have a test?

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.