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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ismail95
Frequent Visitor

Summing a Column by Grouping by another column and creating conditions

Hi, I try to create the meausure/ table below, and need your help. I want to sum Assessment column grouping by Task Name. After that I will compare Sum of Assessments with the tasks threshold ( logic provided below)
123.PNG
1 ACCEPTED SOLUTION
Dangar332
Super User
Super User

Hi, @ismail95 

try below measure for logical test

drag your task and assessment column to table visual and add below measure

 

Measure = 
SWITCH(TRUE(),
MIN(assessment[task])="a" && SUM(assessment[assessment])>5,1,
MIN(assessment[task])="b" && SUM(assessment[assessment])>3,1,
MIN(assessment[task])="c" && SUM(assessment[assessment])>6,1,0)

 

Dangar332_1-1712657851133.png

 

 

 

View solution in original post

1 REPLY 1
Dangar332
Super User
Super User

Hi, @ismail95 

try below measure for logical test

drag your task and assessment column to table visual and add below measure

 

Measure = 
SWITCH(TRUE(),
MIN(assessment[task])="a" && SUM(assessment[assessment])>5,1,
MIN(assessment[task])="b" && SUM(assessment[assessment])>3,1,
MIN(assessment[task])="c" && SUM(assessment[assessment])>6,1,0)

 

Dangar332_1-1712657851133.png

 

 

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors