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
admin11
Memorable Member
Memorable Member

How to make Target amount for 2022 amount display ?

Hi All

My PBI target table working fine in year 2021. since next 1 more week will be 2022 , i have update input target data for 2022.  As you can see from below image :- 

admin11_0-1640312228883.png

I am using below expression for display 2021 target by SBU , it work can return correct value :-

 
Target_2021_ = CALCULATE([TARGET_], Filter('DAte', year('Date'[Date]) =2021 ))
 
But when i try to use below expression to display 2022 target value :-
 
Target_2022_ = CALCULATE([TARGET_], Filter('DAte', year('Date'[Date]) =2022 ))
 

Hope some one can advise me where go wrong ?

 

Paul

 

1 ACCEPTED SOLUTION

@admin11 , Your table name is Traget_ please correct that

 

Target_2022_ = CALCULATE([TARGET_], Filter('TARGET_', year('TARGET_'[Date_t]) =2022 ))

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@admin11 , I doubt you date table do not have dates for 2022 .

Please check that

 

Also, check using date from the table

Target_2022_ = CALCULATE([TARGET_], Filter('Table', year('Table'[Date_t]) =2022 ))

 

@amitchandak 

I think it is due to date for 2022 Jan 1 not yet arrive , one i have sales data date , the target value will appear , so i think need to wait . 

 

May i know windows 10 how to set the today date to 7 Jan 2022 ?

 

Paul

@amitchandak 

 

When i try below expression :-

Target_2022_ = CALCULATE([TARGET_], Filter('Table', year('Table'[Date_t]) =2022 ))
I get error msg below :-

admin11_0-1640315507104.png

 

@admin11 , Your table name is Traget_ please correct that

 

Target_2022_ = CALCULATE([TARGET_], Filter('TARGET_', year('TARGET_'[Date_t]) =2022 ))

@amitchandak 

 

I just check and it work fine now.  Thank you very much

 

Paul

 

@amitchandak 

 

from below image , you ccan mentioned that my table name is TARGET not TRAGET

admin11_0-1640316225166.png

 

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.