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
Anonymous
Not applicable

SUMMARIZECOLUMNS function - date to year month

Hi community,

I have the following evaluate statement in Power BI report builder and want to get date to show as "MonthName - Year" format

EVALUATE
SUMMARIZECOLUMNS (
    'PMC List'[PMC Name],
    FORMAT ( 'Dimension Date'[Date], "mmm-yyyy" ),
    'Monthly Line Item'[Contracted Amount]
)

However, I am getting this error and dont know what is wrong. I appreciate for any feedbacks. Thanks!

TITLE: Power BI Report Builder
------------------------------

Query preparation failed.

------------------------------
ADDITIONAL INFORMATION:

Query (4, 14) A single value for column 'Date' in table 'Dimension Date' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result. (Microsoft Analysis Services)

------------------------------
BUTTONS:

OK
------------------------------
1 REPLY 1
lbendlin
Super User
Super User

EVALUATE
SUMMARIZECOLUMNS (
    'PMC List'[PMC Name],
    FORMAT ( 'Dimension Date'[Date], "mmm-yyyy" ),
    SUM('Monthly Line Item'[Contracted Amount])
)

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.