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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
TSchmidt
Frequent Visitor

Year column cannot be used in visuals

Hi there!

 

I have been banging my head into the wall regarding a semantic model i have build on a lakehouse and hope you might have suggestions to my problem.

 

My model contains the following tables:

TSchmidt_2-1738247603356.png

 

My calendar table has been marked as a date table and has the following relationship:

TSchmidt_6-1738248484771.png

 

I have currently created a simple measure COUNTROWS(equipmentmanager) and want to create a table visual showing how many leases ends each year. However i receive the following error:

TSchmidt_4-1738247846002.png

When i try with other columns from my calendar table everything works fine e.g. month:

TSchmidt_5-1738247961748.png

 

Do you have any suggestions to why it is only the year column i cannot use in my visuals?

 

Best regards

Troels

 

1 ACCEPTED SOLUTION

Hi @TSchmidt ,

 

Create a date hierarchy, it will solve the problem. Please refer.

https://community.fabric.microsoft.com/t5/Desktop/Fiscal-Date-Hierarchies-Mark-as-Date-Table/m-p/810...

https://www.youtube.com/watch?v=1Y0T_KkeWyQ

 

If this post helps, please accept this as a solution. Appreciate your kudos.

Thanks, 

Pallavi

View solution in original post

3 REPLIES 3
v-mdharahman
Community Support
Community Support

Hi @TSchmidt,

Thanks for reaching out to the Microsoft fabric community forum.

 

It looks like you are trying to get data on how many leases ends each year. Can you provide some sample data so that it will be easier to understand your issue and give a complete solution to your query.

 

If I misunderstand your needs or you still have problems on it, please feel free to let us know.  

Best Regards,
Hammad.
Community Support Team

 

If this post helps then please mark it as a solution, so that other members find it more quickly.

Thank you.

Hi @v-mdharahman ,

 

Thank you for the message!

 

Please find sample data from both tables below:
equipmentmanager

Name(Text)EquipmentCategory(Text)Supplier(Text)Department(Text)EndOfLease(Date)
Equipment#1Category#1Supplier#2Department#111-10-2026
Equipment#2Category#1Supplier#3Department#102-04-2026
Equipment#3Category#2Supplier#2Department#402-04-2026

 

calendar

Date(Date)MonthNum(Wholenum)Month(Text)Year(Wholenum)
01-01-201001Jan2010
...   
31-12-205012Dec2050

 

Let me know if further clarification of the model or data is needed.

 

I have another observation i would like to share.

When using the aggregate of the year column for my visual it works fine:

TSchmidt_0-1738330525710.png

TSchmidt_1-1738330536958.png

However when i select "Don't summarize" it gives me the error:

TSchmidt_2-1738330603817.png

 

 

 

 

Looking forward hearing from you

 

Best regards

Troels

Hi @TSchmidt ,

 

Create a date hierarchy, it will solve the problem. Please refer.

https://community.fabric.microsoft.com/t5/Desktop/Fiscal-Date-Hierarchies-Mark-as-Date-Table/m-p/810...

https://www.youtube.com/watch?v=1Y0T_KkeWyQ

 

If this post helps, please accept this as a solution. Appreciate your kudos.

Thanks, 

Pallavi

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! Prices go up Feb. 11th.

JanFabricDE_carousel

Fabric Monthly Update - January 2025

Explore the power of Python Notebooks in Fabric!

JanFabricDW_carousel

Fabric Monthly Update - January 2025

Unlock the latest Fabric Data Warehouse upgrades!

JanFabricDF_carousel

Fabric Monthly Update - January 2025

Take your data replication to the next level with Fabric's latest updates!