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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Stanzarectah
Regular Visitor

ADDCOLUMNS using an existing measure

Hi,

 

I have an existing table that has a measure called 'Metrics'

 

Stanzarectah_0-1654781686809.png

I want to add a few more columns using the ADDCOLUMNS function to add a 12 months (one month per column)  right after the metrics value column

 

I am able to create one measure say, 'July' and add it to the table 

 

July = CALCULATE(MeasureTable_Metrics[Metrics], DateTable[Fiscal Month] = 1)
 
Obviously I do not want to create a measure for each month so I want to use ADDCOLUMS :
 
AddColumns = ADDCOLUMNS(MeasureTable_Metrics, "July", CALCULATE(MeasureTable_Metrics[Metrics], DateTable[Fiscal Month] = 1))
 
However I get the following: 
"The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."
 
Does anyone know why ?

 

3 REPLIES 3
tamerj1
Community Champion
Community Champion

Hi @Stanzarectah 

easiest to use a matrix visual. Place the fiscal month on columns then the measure will be sliced automatically. The column total will show your current metrics values. 

Hi @tamerj1 , sorry I have already tried using matrix but because the metrics column relies on the Name column this can not easily be done.

I have tried the formula ADDCOLUMNS but it never seems to work as I keep gettign the error:

 

"The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."

 

@Stanzarectah 

Please clarify further 

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.