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

Groupby measure and sum

Hi, 

I have one question about aggregation in Power BI:

 

My Measure = 

(If([SAI]> [SAI liM]*.7 || [SAF]>[SAFLimit]*.7,1,0))
 
I want to group by this measure by ID and then sum the total (1 or 0)
Let ke know if it is possible.
 
1 ACCEPTED SOLUTION

Hi Amit,

Thanks, it really works well.

Just one more thing I am getting the table correct , is there a way to get the total at the bottom.

View solution in original post

2 REPLIES 2
amitchandak
Super User IV
Super User IV

@Priya2007 , Try a measure like

sumx(values(Table[id]),If([SAI]> [SAI liM]*.7 || [SAF]>[SAFLimit]*.7,1,0))

 

or

 

sumx(summarize(Table[id],"_1",If([SAI]> [SAI liM]*.7 || [SAF]>[SAFLimit]*.7,1,0)),[_1])



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Hi Amit,

Thanks, it really works well.

Just one more thing I am getting the table correct , is there a way to get the total at the bottom.

View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors