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
MKatsanevas
Helper III
Helper III

Cant define term in Q&A where a calendar year nbr = a measure that is the current year

Hello. Im trying to define a term in Q&A where a calendar year nbr equals a measure that is calculated to current year. I have read that you can use measures in the definitions. I cant seem to get it to work. It does work if I say where fiscal year is CurrentYear. But I want to be able to say give me sales for currentYear and it knows that the fiscal year is the current year. Any help would be appreciated.

MKatsanevas_0-1650573406904.png

 

1 ACCEPTED SOLUTION

its just a whole number in the calendar.

View solution in original post

3 REPLIES 3
v-xiaotang
Community Support
Community Support

Hi @MKatsanevas 

Thanks for reaching out to us.

I doubt if it is possible, how do you define thisfiscalyear? 

 

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

I fugured it out. I created an is_currentyear_ind that gave me a 1 for true and a 0 for false, instead of the currentyear being a year number. Then I defined the text "CurrentYear" as is_currentyear_ind=1 in the teach Q&A. It worked great.

its just a whole number in the calendar.

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.