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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
andrewkla
Frequent Visitor

Sum of two columns based on two filters?

No sure if the title descsribes what I want to do very well, basically I have this data:

 

Case IDDateWriterWriter pointsCheckerChecker Points
ID 245MarchJames100Andrew20
ID 548MarchAndrew150James30
ID 874AprilAndrew160James32
ID 965AprilAndrew50James10
ID 587AprilJames80Andrew16

 

Writer points and checker points are the same points, which I need to visualise the sum of, per month, per person. This is the desired visualisation result:

 

Andrew170226
James130122
 MarchApril

 

Any help appreciated!

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@andrewkla 

I transformed your table in Power Query to a usable layout and just added the points using sum.

Fowmy_0-1621767222924.png

Please check the attached PBIX file and check the PQ steps

Fowmy_1-1621767278853.png

 

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

3 REPLIES 3
Fowmy
Super User
Super User

@andrewkla 

I transformed your table in Power Query to a usable layout and just added the points using sum.

Fowmy_0-1621767222924.png

Please check the attached PBIX file and check the PQ steps

Fowmy_1-1621767278853.png

 

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

@Fowmy 

Thanks, this is indeed a good idea, however - something I should have probably mentioned - my Checker column is a calculated column (lookupvalue from another table where I have Case ID and Checker name). So I can't really pivot that, right?

 

Is there another way of doing it, or have I gone the wrong direction by creating this calculated column in the first place and should have resolved it by some kind of a measure that adds values from two original tables?

@andrewkla 

The right way is to organize your data as I did. If you need a measure, it is possible but not a recommended approach as you may have different names in the writer checker, and the filter by name and other columns are complex.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.