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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
bilalkhokar73
Helper IV
Helper IV

To Display value in card based on slicer selection but from another table

To Display value in card based on slicer selection but from another table

I Have created one slicer of table customer , if I select a customer name then i want to show that customer last sales based on selection of that slicer

Lastsalesdone=lastdate(transaction[date]) this formual is working

DisplayValue= IF(ISFILTERED(Customer[Sitename]),FIRSTNONBLANK(,1),"Please select Site name")

Now problem in display valu formual is after firstnonblank i am not getting measure Displayvlaue there so please help me hwo to do 

 

Display value measure is from transcation table

and sitename is from customer table   @tyemy @amitchandak @v-janeyg-msft 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@bilalkhokar73, Try like

DisplayValue=
var _max = maxx(allselected(transaction) ,transaction[date])
var _customer= calculate(FIRSTNONBLANK(Table[Csutomer],1), filter(transaction,transaction[date] =_max))
return
IF(ISFILTERED(Customer[Sitename]),_customer,"Please select Site name")

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@bilalkhokar73, Try like

DisplayValue=
var _max = maxx(allselected(transaction) ,transaction[date])
var _customer= calculate(FIRSTNONBLANK(Table[Csutomer],1), filter(transaction,transaction[date] =_max))
return
IF(ISFILTERED(Customer[Sitename]),_customer,"Please select Site name")

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors