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

SELECTEDVALUE not Calculating

I'm having an issue with what should be a pretty simple calculation. I have a Calculated Column ( 0-$ ) that calculates a $ amount by way of looking at a related tables percentage. That is working fine. I'd like to have that calculation be multiplied by a SELECTEDVALUE Measure that is looking at a seperate slicer table and is selected by a slicer. I cannot get that aspect to work as it yeilds blanks in the column that was previously working.

 

I've tried changing formats, adding VALUES, putting the calculation in a Variable... to no avail. 

 

Here's a capture of the calculation working prior to introducing the SELECTEDVLAUE into it:

 
 

2020-10-27_15-12-06.png

 

Here's a capture after I add in my SELECTEDVALUE Measure:

2020-10-27_15-15-12.png

 

Thoughts and feedback appreciated. 

 

Thank you,

-Nate

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

Calculated columns do not refresh with slicer changes.  Are you referencing SELECTEDVALUE in a column expression?  If so, that won't work, but you can likely do your column calculation as a measure (if column not used as legend, axis, etc.).

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

2 REPLIES 2
mahoneypat
Microsoft Employee
Microsoft Employee

Calculated columns do not refresh with slicer changes.  Are you referencing SELECTEDVALUE in a column expression?  If so, that won't work, but you can likely do your column calculation as a measure (if column not used as legend, axis, etc.).

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Pat,

That was it, thank you. I ended up with this expression and it worked. 

0-$ (M) = (SUMX(Project,Project[LEFT TO SPEND])*SUMX(RELATEDTABLE(Profile),Profile[0]))*Variable[SelectedVariable]

 

 2020-10-28_7-55-09.png

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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