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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
snifer
Post Patron
Post Patron

sectedvalue in measure to display a graph

I created a table account

what i want to to is to create a measure in order to put in Column value of the graph,

and should be like this

if I select 11999 then  put in column value [11999] [11999 budget] [ 11999 prevyear]

if I select 58229 then  put in column value [58229 ] [58229 budget] [ 58229 prevyear]

if I select 15999 then  put in column value [15999 ] [15999 budget] [ 15999 prevyear]

if I select 89999 then  put in column value [89999 ] [89999 budget] [ 89999 prevyear]

for every selection must appear 3 column 

 

those are measure already made [11999] [11999 budget] [ 11999 prevyear]

I try use SELECTEDVALUE but  I can't make it work

 

 

 

 

Capture.PNG

1 ACCEPTED SOLUTION
tex628
Community Champion
Community Champion

Change the ";" to ","

We are using different delimiters.


Connect on LinkedIn

View solution in original post

3 REPLIES 3
tex628
Community Champion
Community Champion

Make sure you have measures for all of your values,
then make 3 measures:

Measure1:

Amount = 
IF(SELECTEDVALUE([Account])="11999" ; [11999] ;
IF(SELECTEDVALUE([Account])="15999" ; [15999] ;
IF(SELECTEDVALUE([Account])="58229" ; [58229] ;
IF(SELECTEDVALUE([Account])="89999" ; [89999] ;
BLANK()
))))

Measure2:

Budget = 
IF(SELECTEDVALUE([Account])="11999" ; [11999Budget] ; 
IF(SELECTEDVALUE([Account])="15999" ; [15999Budget] ; 
IF(SELECTEDVALUE([Account])="58229" ; [58229Budget] ; 
IF(SELECTEDVALUE([Account])="89999" ; [89999Budget] ; 
BLANK() 
))))

Measure3:

Budget = 
IF(SELECTEDVALUE([Account])="11999" ; [11999prevyear] ; 
IF(SELECTEDVALUE([Account])="15999" ; [15999prevyear] ; 
IF(SELECTEDVALUE([Account])="58229" ; [58229prevyear] ; 
IF(SELECTEDVALUE([Account])="89999" ; [89999prevyear] ; 
BLANK() 
))))

Connect on LinkedIn

@CTE 

 

Current year =
IF(SELECTEDVALUE('VISUAL SELECTOR'[code])="11999";UploadAccountsCurrentyPeriod[11999] ;
IF(SELECTEDVALUE('VISUAL SELECTOR'[code])="15999" ; UploadAccountsCurrentyPeriod[15999];
IF(SELECTEDVALUE('VISUAL SELECTOR'[code])="58229"; UploadAccountsCurrentyPeriod[58299] ;
IF(SELECTEDVALUE('VISUAL SELECTOR'[code])="89999"; UploadAccountsCurrentyPeriod[89999] ;
BLANK()
))))
 
 
I try create a measure from your suggestion but there are a syntax error
 
Capture.PNG
tex628
Community Champion
Community Champion

Change the ";" to ","

We are using different delimiters.


Connect on LinkedIn

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.