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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
JesseV
Frequent Visitor

measure that returns another column value based on the current month

I'm looking for a measure that returns the % based on the current month from the following table:

 

 

Datum (Date type)Verwachte voortgang (% type)
Jan 9%
Feb 18%
Mar 28%
Apr35%
May45%
Jun55%

 

So currently I would want the measure to return 55%.

 

I attempted this, but it gives error that it cannot return a single output

 

 

 

Verwachtte vooruitgang = 
SELECTEDVALUE('Voortgang %'[Verwachte voortgang],
FILTER ('Voortgang %'[Datum],'Voortgang %'[Datum].[Maand] = MONTH(TODAY())
))

 

 

1 ACCEPTED SOLUTION
JesseV
Frequent Visitor

I ended up cracking it by adding Calculate before the whole thing:

Verwachtte vooruitgang = 
CALCULATE(SELECTEDVALUE('Voortgang %'[Verwachte voortgang]),
    Filter('Voortgang %','Voortgang %'[Maand] = MONTH(TODAY()))
)

 
Thanks a ton for your assistance @onurbmiguel_ 

View solution in original post

8 REPLIES 8
JesseV
Frequent Visitor

JesseV_0-1654607895778.png

Naturally, it's a manually added table (where Maand is the month number and date the first day of the month date value) 

Hi again

 

Verwachtte vooruitgang = 
SELECTEDVALUE(
	'Voortgang %'[Verwachte voortgang],
	FILTER(
		ALL('Voortgang %'),
		'Voortgang %'[Maand]= MONTH(TODAY())
	)
)

 

Need to be careful because if you have more than 2 year it will return a error.

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! ;-
Best Regards
BC

 


Best regards


Bruno Costa | Super User


 


Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 


Take a look at the blog: PBI Portugal 


 


if you have 2 or more year you can try: 

 

Verwachtte vooruitgang = 
SELECTEDVALUE(
	'Voortgang %'[Verwachte voortgang],
	FILTER(
		ALL('Voortgang %'),
		'Voortgang %'[Datum] = date( year(TODAY()) , MONTH(TODAY()) , 1 )
	)
)

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! ;-
Best Regards
BC

 


Best regards


Bruno Costa | Super User


 


Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 


Take a look at the blog: PBI Portugal 


 


Hey Onurbmiguel,

I appreciate the effort! Unfortunately I'm still getting the same error

JesseV_0-1654612281793.png

I attempted to filter on the Month value (outside of the date column) , this had the same error as a result. (It's complaining about multible collumns not being converted, only a scalair value can be (whatever that may be). 

 

I'm starting to think my approach to using SELECTEDVALUE is wrong (after reading https://docs.microsoft.com/en-gb/dax/selectedvalue-function ) 

Since I don't want to filter on the 'Voortgang %'[Verwachte voortgang] collumn but on the Month collumn. 

 

As in the example; every month will have 1 row with only 1 value. 

JesseV
Frequent Visitor

I ended up cracking it by adding Calculate before the whole thing:

Verwachtte vooruitgang = 
CALCULATE(SELECTEDVALUE('Voortgang %'[Verwachte voortgang]),
    Filter('Voortgang %','Voortgang %'[Maand] = MONTH(TODAY()))
)

 
Thanks a ton for your assistance @onurbmiguel_ 

onurbmiguel_
Power Participant
Power Participant

Hello Jesse 

Try like this 

 

Verwachtte vooruitgang = 
SELECTEDVALUE('Voortgang %'[Verwachte voortgang],
FILTER (ALL('Voortgang %'),'Voortgang %'[Datum].[Maand] = MONTH(TODAY())
))

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! ;-
Best Regards
BC

 


Best regards


Bruno Costa | Super User


 


Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 


Take a look at the blog: PBI Portugal 


 


Hey @onurbmiguel_ , thank you for replying.

 

The measure gives an error: 'The expression references multiple columns. Multiple collumns cannot be converted to a scalair value' (attempted translation on my part ;))

 

is this because the 'Verwachte voortgang' collumn has multiple %-ages ?

Hi again Jesse, 

You can share some values ​​from the table to see the structure of the model, and if you are using a calendar table.

 

BR 

Bruno

 


Best regards


Bruno Costa | Super User


 


Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 


Take a look at the blog: PBI Portugal 


 


Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors