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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors