cancel
Showing results for
Did you mean:
Highlighted
Helper IV

## Dax

I need help building a DAX in a way that calculates the sum of the 2 given rows of FY16-17 and outputs in a single row and also to remove the [1L] and [100 ML] from the row.

ignore the Total

Current-

Desired -

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User IX

## Re: Dax

@Nimai123 , Try sumx

Measure 2 = SUMX(SUMMARIZE('Product Sales Report','Product Sales Report'[All Segment.All Segment Level 01],'Product Sales Report'[Material.Material Level 01],"_1",[Total Qty Inc Foc FY16-17]),[_1])

Add all the group column of table

Proud to be a Super User!

3 REPLIES 3
Highlighted
Super User IX

## Re: Dax

Is that all of your data? You could create a new column like:

``Material = LEFT([Materials,FIND([Materials],"[") - 1)``

Then just put that in your visual and you should get a single row and the sum you want.

---------------------------------------

Not link spamming! If I posted a link in reply it is because I did assume you know how to search the web but thought it was the fastest way to fix your issue.

##### I have a NEW book! DAX Cookbook from Packt
Over 120 DAX Recipes!

Proud to be a Super User!

Highlighted
Super User IX

## Re: Dax

Try like

Proud to be a Super User!

Highlighted
Super User IX

## Re: Dax

@Nimai123 , Try sumx

Measure 2 = SUMX(SUMMARIZE('Product Sales Report','Product Sales Report'[All Segment.All Segment Level 01],'Product Sales Report'[Material.Material Level 01],"_1",[Total Qty Inc Foc FY16-17]),[_1])

Add all the group column of table

Proud to be a Super User!

Announcements

#### August Community Highlights

Check out a full recap of the month!

#### August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

#### Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors