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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
nhooper
Frequent Visitor

Sum Table Column of Lookup values - Paginated Report in Report Builder

Hi, 

 

New to PowerBI, using the Report Builder

 

I'm trying to create a report that can audit a collection of lessons for a course completion.

I have a table that retrieves the required lessons for a given course, and uses a lookup function to check weither a user has completed that lesson from another table. The problem is I cannot figure out how to get a sum of the column containing the result of the lookup values to determine how many lessons the user has completed related to the given course.

 

nhooper_0-1649026200519.png

 

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @nhooper ;

Sorry, I cannot test in PowerBI Report Builder due to Liscense, but in PowerBI Desktop, you can create a measure as follows and then use the Matrix visual object.

Complete = 
var _a=SUMMARIZE(FILTER(ALL('Table'),[User]=MAX([User])),[Lesson])
var _b=SUMMARIZE(FILTER(ALL('Course'),[course]=MAX('Course'[course])),[lessons])
var _percen=FORMAT( COUNTROWS(INTERSECT(_a,_b))/COUNTROWS(_b),"0.00%")
return IF(ISINSCOPE('Course'[lessons]), IF(MAX('Course'[lessons]) in _a,"Yes","No"),_percen)

The final output is shown below:

vyalanwumsft_0-1649213343042.png

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

View solution in original post

3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

Hi, @nhooper ;

Sorry, I cannot test in PowerBI Report Builder due to Liscense, but in PowerBI Desktop, you can create a measure as follows and then use the Matrix visual object.

Complete = 
var _a=SUMMARIZE(FILTER(ALL('Table'),[User]=MAX([User])),[Lesson])
var _b=SUMMARIZE(FILTER(ALL('Course'),[course]=MAX('Course'[course])),[lessons])
var _percen=FORMAT( COUNTROWS(INTERSECT(_a,_b))/COUNTROWS(_b),"0.00%")
return IF(ISINSCOPE('Course'[lessons]), IF(MAX('Course'[lessons]) in _a,"Yes","No"),_percen)

The final output is shown below:

vyalanwumsft_0-1649213343042.png

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

nhooper
Frequent Visitor

Have not had the chance to watch the videos yet, however I am using PowerBI Report Builder, not PowerBI Desktop. 

 

I've attached an example in a spreadsheet of what I'm trying to acheive.

 

nhooper_0-1649078563981.png

 

amitchandak
Super User
Super User

@nhooper , Not very clear. Refer if these can help

refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.