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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors