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
melpop
Helper I
Helper I

allKPI: Count of countries in which top selling item number 1 is on rank number 1

Hi all
I am displaying a Top Selling Items table (like the one below) and made the "rank" through the TopN filter, meaning I don't have a specific rank column. I would like to add a KPI that states the count of countries in which top selling item number 1 is on rank 1, top selling item 2 is on rank 2 etc. So e.g. in how many countries is item 3028783 is the number 1 top selling item?

 

2020-11-10 08_44_57-Sellout_copy - Power BI Desktop.png

I don't know how to go about this. Can anybody help me out?

 

Thanks in advance 🙂

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @melpop 

 

It’s my pleasure to answer for you.

According to your description,I think you can create a measure to calculate the desired result.

Like this:

KPI = COUNTX(Table2,[Country])

 10.png

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

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

View solution in original post

3 REPLIES 3
v-janeyg-msft
Community Support
Community Support

Hi, @melpop 

 

It’s my pleasure to answer for you.

According to your description,I think you can create a measure to calculate the desired result.

Like this:

KPI = COUNTX(Table2,[Country])

 10.png

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

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

v-janeyg-msft
Community Support
Community Support

Hi, @melpop 

 

Could you mind sharing some sample data and your desired result?So we can help you soon.

Best Regards

Janey Guo

 

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

Hi @v-janeyg-msft 

Thanks for the quick reply. I added some sample info here:

https://docs.google.com/spreadsheets/d/1rhNhsM4lwSJiPUF_jZyEReiOEK3W2rd5Pj960bUr2W8/edit?usp=sharing

 

Let me know if you need more info.

 

/Melisa

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.