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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

DAX Help

So I have a matrix that is being generated by this query: -

 

MTD Consumed data= TOTALMTD([Current Month Consumed data],'Inventory Date'[Date

 

What I want is the that I want to create a separate measure for each columns (col1, col2 and so on) that gives me the sum of the the column. For example: A measure that gives me sum of col1 that is 1707.76 and second measure that gives 1749.67

 

 

 

 

8 REPLIES 8
Sean
Community Champion
Community Champion

How and where (in what context) are you going to use this total - that will determine how to write the Measure.

 

For instance - you don't have to change anything in the Measure if you display instead of Date - Month on the Rows.

Anonymous
Not applicable

@Sean I intend to use this measure and multiply this with another measure to get the final output. So that's why I want to get the numeric output.

@Anonymous

What are rows and column in that matrix? Things would be much clear if you could upload a pbix sample file.

Anonymous
Not applicable

I have several columns containing numbers in my matrix visualization. Now how do I pull those "Total" (sum) values out for calculation. I need those value to multiply with other measures.

Anonymous
Not applicable

@Anonymous You would need to provide an example for a direct response, but I would imagine the solution is using CALCULATE with FILTER to only return certain values you want Summed up.

Anonymous
Not applicable

 

 

I want to extract 1707.76 and so on..all total values ..so that I can multiply them with other measures.

Anonymous
Not applicable

@Anonymous Do you need something other than

Measure 1 = SUM('tablename'[Col1])

Measure 2 = SUM('tablename'[Col2])

etc, etc?

 

For instance, are you getting these values because you are filtering the data in some way? If not, the above should work.

Sean
Community Champion
Community Champion

That picture could also represent a Matrix with 1 Row field and 1 Column field and 1 Value field.

 

In which case you'll need to use ALLEXCEPT ( Table, Table[Column] )

 

However that would also depend on how/where those totals will be used???

 

EDIT: In fact it could have 2 or more fields in the Columns.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.