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
mohsin-raza
Helper III
Helper III

Display distance differnce in Rapport

Hello:

 

Here is an example dataset with two column. Distance column shows difference of distance from place "Sul" to "Dom" =4,47 and same from place "Dom" to "id" =19,29.

I like to show the same result in my report.

 

User can chose from  Drop down " sul"  to "Dom" and find distance "4,47". same with othe places

Can some body help me to solve this problem? 

 

with regards

 

 

 Repport.jpeg

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @mohsin-raza ,

 

Are your distance always based on the SUL to the other location?

 

If yes you just need to do the following:

 

  • Add a text box and write the value SUL and make the title as From:
  • Add a slicer with the location and make the title as  To:
    • Make this slicer a dropdown
  • Add a card visualization with the distance value

 

Whenthe users change the value on the slicer the card will change accordingly.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
v-yangliu-msft
Community Support
Community Support

Hi  @mohsin-raza ,

Here are the steps you can follow:

1. Create calculated table.

Table 2 = DISTINCT('Table'[Plats])

vyangliumsft_0-1643096369109.png

2. Place the [Plats] of Table2 into the first slicer and the [Plats] of Table1 into the second slicer. And put [Distans] of Table1 into Card.

vyangliumsft_1-1643096369114.png

3. Home – Text box, create three Text boxes respectively, write From, to, Distance.

vyangliumsft_2-1643096369120.png

4. Result:

vyangliumsft_3-1643096369121.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

MFelix
Super User
Super User

Hi @mohsin-raza ,

 

Are your distance always based on the SUL to the other location?

 

If yes you just need to do the following:

 

  • Add a text box and write the value SUL and make the title as From:
  • Add a slicer with the location and make the title as  To:
    • Make this slicer a dropdown
  • Add a card visualization with the distance value

 

Whenthe users change the value on the slicer the card will change accordingly.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



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.