cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Group By This but not by that

So im trying to Calculate at the "Measure" level which will produce a whole number output (1,2,3,4,5). Once this value is found, it needs to aggregate at the "Contract" level (one of three categories). So if i filter for one Contract, it should STILL be a whole number, but if i choose two contracts, it would be an average of the two (scores of 1 and 2 would aggregate to 1.5).

 

Right now im using SUMX(VALUES([Measure]),CALCULATE(formula)). This is aggregating the formula AFTER"Contract" selection is considered instead of BEFORE (so that instead of finding values of 1 and 2 equaling 1.5, it is aggregating at the contract level first to find either 1 or 2).

 

How do i alter my DAX formula so that it aggregates BEFORE it considers "Contract"?

 

 

1 REPLY 1
Highlighted
Microsoft
Microsoft

Re: Group By This but not by that

Hi @brianmsbc 

I cannot reproduce your scenario.Could you share a simplified data sample and expected output?Please follow this article How to Get Your Question Answered Quickly to post your data.

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors