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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
abc_777
Super User
Super User

hi

Hi

I want to make a card visual, Ihave done top 

TOP Product = CALCULATE(SELECTEDVALUE('bm_retail_t product_file'[ITEM_NAME]),
TOPN(1, ALL('bm_retail_t product_file'),[Sale], DESC))
abc_777_0-1684579297938.png

 

 
Now I want to make bottom

i tried follwoing but no luck 

 

Bottom Product = CALCULATE(SELECTEDVALUE('bm_retail_t product_file'[ITEM_NAME]),
TOPN(1, ALL('bm_retail_t product_file'),[Sale], ASC))
 
please help
3 REPLIES 3
Thejeswar
Super User
Super User

Hi @abc_777 ,

I tried this with some simple data, It works fine. There should be something else that is impacting the way this works in your case.

 

In the below example, Product is a Column, sale is a Calculated Measure

Thejeswar_0-1684585924551.png

 

Top_Product = CALCULATE(SELECTEDVALUE(Product_sales[Product]), TOPN(1, Product_sales, Product_sales[sale],DESC))

Bottom_Product = CALCULATE(SELECTEDVALUE(Product_sales[Product]), TOPN(1, Product_sales, Product_sales[sale],ASC))

 

 

same i though as well. anyways thankx man for your time

i have another issue i am also wondering that one as well can u check if u can solve it if u have time to do so. thx

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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