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
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
Employee
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
Employee
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
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.