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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to add the values of a measure and a column for a visual?

Okay, so basically I'm trying to make a very basic roundabout way of write back.

 

I have two tables.

 

tRaw which contains a lot of info but the two that matter are are ZIP codes and Delivery Cost.

 

ZIP Code Delivery Cost
12345 $10
23456 $15
34567 $10
45678 $20
56789 $15

 

And 'Table' which is a table ranging from 0-9

0
1
2
3
4
5
6
7
8
9

 

 

I also have another table called 'Pricing' that has a column called 'Column1' that just referencing 'Table'

 

I have also created a measure in 'Pricing' that references said Table called 'Measure' = SELECTEDVALUE('Pricing'[Column1])

 

Picture for reference since the names got kind of confusing. I promise I'll change them for the final product lol

Joaqun_0-1648502368630.png

 

 

Back to tRaw, I have created a measure amplty called 'Measure 2' as a test

Measure 2 = SELECTEDVALUE('Pricing'[Column1]) + 1

 

The aim of this, is that now I have a visual that loooks like this

Joaqun_1-1648502594789.png

 

and another Table Visual that lookes like this

 

ZIP Code Delivery Cost Measure 2
12345 $10 1
23456 $15 1
34567 $10 1
45678 $20 1
56789 $15 1

 

 

If on the first visual, I were to select the number 3, the visual would update to this as a proof of concept

ZIP Code Delivery Cost Measure 2
12345 $10 4
23456 $15 4
34567 $10 4
45678 $20 4
56789 $15 4

 

This example, works in Power BI. That's all good.

 

What I need help with and is my main goal, is to have the visual work like this

 

A) I select a value from the Column1 visual, 3 again for this example

B) The second visual would update to look like this

 

ZIP Code Delivery Cost Measure 2
12345 $10 13
23456 $15 18
34567 $10 13
45678 $20 23
56789 $15 18

 

 

I feel like I'm so close. I'm not sure what to type in DAX for the measure for it to be able to add the selected value of Column1 and 'Delivery Cost'. I just want to get from point A to point B

 

Please and thank you

4 REPLIES 4
johnt75
Super User
Super User

You can create the measure as

Measure 2 = SELECTEDVALUE( tRaw[Delivery Cost]) + SELECTEDVALUE('Table'[Column1])
Ashish_Mathur
Super User
Super User

Hi,

Assuming Delivery cost is a measure, write this measure

Measure = [Delivery cost]+[measure 2]


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

So Delivery Cost is a column that is on a different table called tMaster. That value is imported directly from an excel file sitting on a shared drive. I created another column in tRaw called 'Delivery Cost' to try to see if the measure could pull from it but it can't.

 

Any more suggestions?

Anonymous
Not applicable

Delivery Cost is a column, but I'm pretty sure I can make it a measure. I'll get back to ya if it works!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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