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
Anonymous
Not applicable

How to filter on a level OTHER than the lowest

Hi All!

 

I would like to know if there is a function or formula to solve the following problem. I want to create a new KPI to show the % of brands which are in the top-left side of the following chart (blue dots) out of the total:

 

Y axis: Uplift Volume %

X axis: ROI Sell In €

Dimension: Brand

Size of dots: Promotional Volume (Liters)

 

GerardBA_0-1633345681076.png

 

To do so, I have created the following formula in DAX: 

 

GerardBA_2-1633345896693.png

 

The problem is that the Primary Key (PK) of DimProducto table is the product, not the brand. Brand is the father of product dimension within the Brand-Product hierarchy in the DimProducto table.

 

One solution would be creating a new table in the data model which his PK was Brand, but I would prefer to solve it through a DAX formula as it is more scalable.

 

Thank you very much in advance for your help! 🙂

 

*Note: "Marca" means Brand in spanish, and "Volumen Promo" means Promotional Volume.

 

 

3 REPLIES 3
Anonymous
Not applicable

Hi @v-yalanwu-msft ,

 

Of course. My DimProducto table has the following structure:

 

GerardBA_2-1633595019078.png

 

See that the Primary Key (PK) is the dimension Product, not Brand. Thanks!

v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

According to the information you provided, it is difficult to clearly understand your table structure. Can you share simple files after removing sensitive information? Or more information?

Best Regards,
Community Support Team_ Yalan Wu

Anonymous
Not applicable

@amitchandak @v-yiruan-msft do you know what I might be looking for? 😇

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.