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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
rylach
Helper II
Helper II

Aggregation by calculated column using 'FORMAT' function

Hi,

I created calculated column

settlemonth_mmmm_YYYY = FORMAT(issues[settlemonth];"mmmm YYYY")
 
(where issues[settlemonth] is a date field)
 
I put this field into 'rows' of table visual assuming that it will aggregate some numeric value (of the same 'issues') table by months, but, surprisingly, I got repeated rows for every unique issues[settlemonth] value.
 
Anyone can explain this? It behaves like that even after changing the calculated column definition to:
 
settlemonth_mmmm_YYYY = FORMAT(DATE(YEAR(issues[settlemonth]);MONTH(issues[settlemonth]);1);"mmmm YYYY")
 
TIA,
Ryszard.

 

 

 

 

 

 

 

 

 

 

 

"First they ignore you. Then they laugh at you. Then they fight you. Then you win." - Mohandas Gandhi.
1 ACCEPTED SOLUTION

Thank you @Greg_Deckler  for pointing me to the FAQ entry, I'll use it... next time 😉

 

Preparing the sample data I found the solution. The calculated column was set to be sorted by the original column (issues[settlemonth], containing individual days). That was the reason for which it wasn't aggregated to months.

 

Cheers,

R.

"First they ignore you. Then they laugh at you. Then they fight you. Then you win." - Mohandas Gandhi.

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

Would need to understand you data better, can you post sample data? Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thank you @Greg_Deckler  for pointing me to the FAQ entry, I'll use it... next time 😉

 

Preparing the sample data I found the solution. The calculated column was set to be sorted by the original column (issues[settlemonth], containing individual days). That was the reason for which it wasn't aggregated to months.

 

Cheers,

R.

"First they ignore you. Then they laugh at you. Then they fight you. Then you win." - Mohandas Gandhi.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.