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! Learn more

Reply
PBIfanatic
Helper V
Helper V

Selected Value not returning the value

Hi,

 

What seemed like a simple solution has taken few hours now and still cant figure out the SelectedValue issue. 

I have a Product table connected to a Promotions table with a relation 1 - many.

And have a filter for Promotion in the report. 

I need to create few calculated columns in the Product table using SelectedValue on the filter but I dont get the selected value of the filter. It just returns blank.  Is there any restriction on using the SelectedValue function, or is there a different way to use it? 

 

Product IDMeasure 1 
112
11122
111132

 

Product IDPromotion
11Promo1
11Promo2
11Promo3
111Promo1
111Promo4

 

6 REPLIES 6
v-zhangti
Community Support
Community Support

Hi, @PBIfanatic 

 

What is your expected output?  Is it a slicer used?  What is the expected result of using the selectedvalue function?   Can you describe it or show it in pictures?  Look forward to your reply. Thank you.

 

Best Regards,

Community Support Team _Charlotte

jdbuchanan71
Super User
Super User

@PBIfanatic 

Calcualted columns are only updated when the model is refreshed.  A filter (like a silcer) on a report won't do anything to a calculated column.  Can you give us more information about what you are trying to accomplish?

Take a look at this post, it has a lot of information about what we need to help you with your question.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523#M6071...

 

hi @jdbuchanan71 

if I had known this would have framed it differently. 

I want to create a flag against each product based on some numerical values thats associated to the product(these values aer in other tables) for the Promotion filter selection.

 

 

 

Fowmy
Super User
Super User

@PBIfanatic 

If you are trying to create a calculated column then you cannot access what is selected in the report from any filter. This is because adding columns take place in the data modeling stage, once you complete that the data load and the model are ready for use in the report. 



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

thanks @Fowmy 

Is there a way to create a column on the fly based on the selected value from a filter?

 

@PBIfanatic 

Yes, absolutely, you can use many table functions in DAX depending on your situation, for example

FILTER (
    ADDCOLUMNS (
        VALUES ( 'Date'[Calendar Year] ),
        "@Amount",              [Sales Amount],
        "@Quantity Wrong",      SUM ( Sales[Quantity] )
     ),
    [@Amount] > SELECTEDVALUE( Parameter[Amount] )
)



 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

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.