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
lprabhal
Frequent Visitor

Struggling to create a measure based on current year

Hi Everyone,

 

I am a newbie to PBI and I am struggling to create a simple measure on a column. 

 

I have a date column CTT sign date and I am trying to create something like this.

 

If CTT sign date is current year then (measure1 * 1.52) - measure1 is a field from a table

IF(YEAR(VALUES('FACT Sales Pipeline'[CTT Sign Date])) = YEAR(TODAY()),(SUM('FACT Sales Pipeline'[Converted Booking]) * 1.52),0)

and this is giving me an error while displaying the view
"A table of multiple values was supplied where a single value was expected" 
 
I have to use Values here because when i used Year('FACT Sales Pipeline'[CTT Sign Date]) this throwed me error saying "Cannot find name"[CTT Sign Date]
 
Can someone please help me here
1 ACCEPTED SOLUTION
Shaurya
Memorable Member
Memorable Member

Hi @lprabhal,

 

Since you have to perform this operation for every date you should create a DAX column and not a measure. You can use:

 

Result = IF(YEAR('Table'[Date])=YEAR(TODAY()),'Table'[Field]*1.52,0)

 

Works for you? Mark this post as a solution if it does!
Check out this post of mine: Forecast Period - Previous Forecasts 
Spare some time to read: How to Export Telemetry Data from Azure IoT Central into Power BI 

View solution in original post

2 REPLIES 2
lprabhal
Frequent Visitor

Great! it's working, much appreciate your help

Shaurya
Memorable Member
Memorable Member

Hi @lprabhal,

 

Since you have to perform this operation for every date you should create a DAX column and not a measure. You can use:

 

Result = IF(YEAR('Table'[Date])=YEAR(TODAY()),'Table'[Field]*1.52,0)

 

Works for you? Mark this post as a solution if it does!
Check out this post of mine: Forecast Period - Previous Forecasts 
Spare some time to read: How to Export Telemetry Data from Azure IoT Central into Power BI 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors