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
SureshPydi1
Frequent Visitor

Need help to Create Virtual Table

Hi All,

 

I need a help to create Virtual Table - 

 

I have a dropdown slicer. Based on the Dropdown slicer selection i need to caluculate the distance from the selected location to existing table locations. I am using measure for caluculation part. I am able to get all the location distance from the selected location.

 

It is working fine for single selection as Expected (Example below)

Single Selection   
Selected Value in the Slicer Dropdown ABC 
    
Table   
NameLocationAmountDistance(Using Measure)
ABCLocation11000123
BCDLocation21001234
CDFLocation31002345
DEFLocation41003567
EFGLocation51004123
FGHLocation61005278

 

If i select multiple locations in the dropdown, Power BI is confused to caluculate the distance. I need a way to caluculate multiple selections. (i think it can be possible using Virtual table as below.)

 

Multiple Selection  
Selected Value in the Slicer Dropdown ABC, BDC

 

Table     
NameLocationAmountDistance(Using Measure) Selected Value
ABCLocation11000123 ABC
BCDLocation21001234 ABC
CDFLocation31002345 ABC
DEFLocation41003567 ABC
EFGLocation51004123 ABC
FGHLocation61005278 ABC
      
ABCLocation11000123 BDC
BCDLocation21001234 BDC
CDFLocation31002345 BDC
DEFLocation41003567 BDC
EFGLocation51004123 BDC
FGHLocation61005278 BDC

 

Can anyone guide me on this approach.?

1 ACCEPTED SOLUTION

if you follow my logic calculation I think you will go do it

View solution in original post

3 REPLIES 3
SureshPydi1
Frequent Visitor

Hi @Ahmedx ,

Thanks for your Quick help. I can use this. In my case the @slicer value we are getting from other table. As we are having 2.5L records in the Other table. Can we caluculate the Virtual table only the values after slicer select?

if you follow my logic calculation I think you will go do it

Ahmedx
Super User
Super User

I'm not sure I understood you, but look at the file, maybe my solution logic will help you

 

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.