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

group and sum

Hello,

i would be thankful, if youcould help me to find out how to solve this problem.

 

Here is my sample inputs:

inputs.JPG

expected sample output:( to sum th soll quantity according to month, plannungressournr. and ressourcenr.)

outputs.JPG

my result after implementation is as following which the concept is not the same as i what i expected. because soll is total quantity but i want to have it seperatly for each group.

1.png

 

i used this measurement for calculating"soll", but in my tables what i see is different than my expected output.measure.JPG

 

Thank you for your time.

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

AilleryO
Memorable Member
Memorable Member

Hi,

 

Did you try using SUMMARIZECOLUMNS ? or SELECTEDVALUE?

Let us know

Anonymous
Not applicable

i used SUMMARIZECOLUMNS  but if i am right,its giving me result in new tablebut i want to have a measure in my dashboard and use it with matrix visualisation.

Hi,

You're right the SUMMARIZECOLUMNS returns multiple results, but as far as I understand your problem, you want to "filter" with the line context.

Try adding a SELECTEDVALUE in your calculation :

More details on that :

https://www.sqlbi.com/articles/using-the-selectedvalue-function-in-dax/

or

https://docs.microsoft.com/fr-fr/dax/selectedvalue-function

But for me the SQLBI explanation is more clear.

Let us know if it works...

 

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.