Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Shahul_MRL
New Member

Issue with Displaying Selected Value in Column

Dear Team,

I am reaching out regarding a challenge I am facing with retrieving the selected value in a specific column. Despite selecting "PRI" in the slicer, the column values continue to display as "Stockin" only.
Cohort column is in the slicer so will be giving the option to user to select stockin or PRI.

Your assistance in resolving this matter would be greatly appreciated.

Shahul_MRL_0-1695558769737.png

 

1 ACCEPTED SOLUTION

Hi @Shahul_MRL ,

It seems that what you are creating is a calculated column, the calculated column will not change according to the user interaction(slicer, filter, column selections etc.) in the report as the value of a calculated column is computed during data refresh and uses the current row as a context... Please review the following links about the difference of calculated column and measure...

Calculated Columns and Measures in DAX

Calculated Columns vs Measures

You can create a measure as below with the same formula, it can achieve your expected result.

Cohort Selected = IF(SELECTEDVALUE('Cohort Support'[Cohort])="PRI","PRI","Stockin")

Best Regards

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

View solution in original post

2 REPLIES 2
Shahul_MRL
New Member

Tried this 

Cohort Selected = IF(SELECTEDVALUE('Cohort Support'[Cohort])="PRI","PRI","Stockin") and result is Stockin only all time.
and for 
Cohort Selected = SELECTEDVALUE('Cohort Support'[Cohort]) balnk is the result.

Hi @Shahul_MRL ,

It seems that what you are creating is a calculated column, the calculated column will not change according to the user interaction(slicer, filter, column selections etc.) in the report as the value of a calculated column is computed during data refresh and uses the current row as a context... Please review the following links about the difference of calculated column and measure...

Calculated Columns and Measures in DAX

Calculated Columns vs Measures

You can create a measure as below with the same formula, it can achieve your expected result.

Cohort Selected = IF(SELECTEDVALUE('Cohort Support'[Cohort])="PRI","PRI","Stockin")

Best Regards

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.