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() is not supported in powerbi rs desktop

hi all,

   I'm creating a following measure in pbix file..

_TotR =
If(
SELECTEDVALUE('Focus'[Focus]) = "UP",
CALCULATE(COUNT('Gen'[Total]),'Gen'[Focus] <> "EXS"),
If(
SELECTEDVALUE('Focus'[Focus]) = "Exe",CALCULATE(COUNT('Gen[Total]),'Gen'[Focus] <> "ENG"),
CALCULATE(COUNT('Gen'[Total]))
)
)

 

this works good in powerbi desktop. but the same when i tried to implement in tabular model & powerbi rs desktop..

i'm facing issues(when dragged the measure into card).

err.PNG

after creating the measure in tabular model, it shows value for measure in model, but when i use the tabular model as source for powerbi rs desktop, i'm facing the above issue..if i drag measure to card.

Can anyone pls help, how can rectify it??

3 REPLIES 3
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

Based on my test, SELECTEDVALUE() function worked fine in desktop optimized for Power BI Report Server. Please update your desktop version to the latest one: March 2018

1.PNG

 

Regards,

Yuliana Gu

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

Hi Yuliana Gu thanx for the reply..

  Using SELECTEDVALUE() i'm creating measure in powerbi report server desktop for which tabular model is the source. i didn't get selectedvalue() keyword at all...........so i'm using HASONEVALUE() instead of it..

Hi @Anonymous,

 

Yes. SELECTEDVALUE is not supported in Direct Query mode. Please see my reply in an other thread.

 

Regards,

Yuliana Gu

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

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.