cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Post Prodigy

## Calculated column

Hi guys,

If I have a slicer, for example Date, and when we select some date, can we put the value of it in some table as a calculated column.

So when I have a slicer based on my DimDate dimension, I may create a measure "Selected date = SELECTEDVALUE(DimDate[Date])"

Lets say I have a table:

 Item CreateDate ItemA 10/1/2019 ItemB 10/2/2019

So I want to add a calculated column with the value of SelectedDate on each row of my table.

Thanks,

1 ACCEPTED SOLUTION
Community Support

The max function should work fine as following, the selectvalue function may return value if you select multi dates.

If it doesn't meet your requirement, Please show the exact expected result based on the Tables that you have shared.

BTW, pbix as attached.

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
5 REPLIES 5
Community Support

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Post Prodigy

Hi,

Sorry, yes it works.

Thanks

Community Support

The measure is dynamic but the calculated columns are computed during the database processing and then stored in the model. So In your scenario, we connot put the value of slicer in some table as a calculated column.

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Post Prodigy

Hi,

How about measure, can I use measure ?

I've created something like "ChosenDate = SELECTEDVALUE(Date[Date]), and put the measure in table visual with my transaction data, but it is empty

If I'm using MAX(Date[Date]) it will be the latest date in the dimension, not the one I select in the slicer.

Thanks,

Community Support

The max function should work fine as following, the selectvalue function may return value if you select multi dates.

If it doesn't meet your requirement, Please show the exact expected result based on the Tables that you have shared.

BTW, pbix as attached.

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

#### Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors