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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
emma313823
Helper IV
Helper IV

Have an issue pulling out the year from a date

Hi all

 

I've used the appropriate formulate to pull out the year from an invoice date to go into a new column in my data set.  The problem I now have is when I try to create a basic matrix and add the new 'ship year'...The year does not show....it has some blown up sum....assuming it's adding up all the years and perhaps seeing this as a number.

 

I just did this for another type of date requirement and it worked fine.  Is there some setting I need to adjust to get the matrix to show the year and not a sum?

 

Emma

Emma
1 ACCEPTED SOLUTION
parry2k
Super User
Super User

Not sure what formula you are using to calculate year but seems like it is coming out as a number, you can use two methods to no summarize,

 

- click on down arrow key and say don't summarize

 

sum 1.PNG

 

 

Or go to modelling table, select the field and select don't summarize

 

sum 2.PNG

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

2 REPLIES 2
v-sihou-msft
Employee
Employee

@emma313823

 

In your scenario, I assume you use Year() function to pulling year part from a date. This function will return a number. In Power BI Desktop, when draging a numeric value into a visual, it will aggregate automatically. You can set the aggregation type into "Don't summarized" as @parry2k suggested, or you can change the data type into Text.

 

566.PNG

 

Regards,

 

parry2k
Super User
Super User

Not sure what formula you are using to calculate year but seems like it is coming out as a number, you can use two methods to no summarize,

 

- click on down arrow key and say don't summarize

 

sum 1.PNG

 

 

Or go to modelling table, select the field and select don't summarize

 

sum 2.PNG

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.