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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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 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.


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG
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 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.


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.