Forum Discussion
PBIfanatic
Helper V
4 years agoSelected 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...
PBIfanatic
Helper V
4 years agothanks Fowmy
Is there a way to create a column on the fly based on the selected value from a filter?
Fowmy
Super User
4 years agoPBIfanatic
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] )
)