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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Dee
Helper III
Helper III

How to show progress of selected total values in a column

Hi people,

 

I need help in figuring out, how to show the progress of students in the particular courses taken under a module.

 

Any help on how to achieve this will be highly appreciated

 

I have 3 tables:

 

1. Modules With Courses

 

Modules        Courses

1                     BBA, BBC,BBD,BBE,BBF

2                     BBB

 

2. Courses and student progress in that module

Courses:    

Names       student enrolled         Grade              status

BBA                A                              50                     not complete

BBA                B                               20                    not complete

BBB                A                               20                    not complete

BBC                A                               10                    not complete

BBD                A                                100                 done

BBG                A                                 0                     not complete

 

 

3. Students progress per module

 

Name     Module 1                                                                                              Module 2

               enrolled                                 Progress                                                  enrolled  Progress

A            3/5 t enrolled in three)      Avg of grade()                                            1/1(Because the module only                                                                                                                                       has one course)

 

I would love to show per module the number of courses a student has enrolled in, as a fraction and their progress.

 

TIA!!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Dee,

You can refer to the following measure formulas and matrix design to achieve your requirement:

 

Progress = 
VAR moduleList =
    CALCULATE (
        CONCATENATEX ( VALUES ( Modules[Courses] ), [Courses], "," ),
        ALLSELECTED ( Modules ),
        VALUES ( Modules[Modules] )
    )
VAR total =
    CALCULATE (
        PATHLENGTH(SUBSTITUTE(CONCATENATEX(VALUES(Modules[Courses]),[Courses],","),",","|")),
        ALLSELECTED ( Modules ),
        VALUES ( Modules[Modules] )
    )
VAR actual =
    CALCULATE (
        COUNT ( Courses[student enrolled] ),
        FILTER ( ALLSELECTED ( Courses ), SEARCH ( [Names], moduleList, 1, -1 ) > 0 ),
        VALUES ( Courses[student enrolled] )
    ) + 0
RETURN
    actual & "/" & total


avg grade =
VAR summary =
    SUMMARIZE (
        Courses,
        [student enrolled],
        "AVG", CALCULATE (
            AVERAGE ( Courses[Grade] ),
            FILTER (
                ALLSELECTED ( Courses ),
                SEARCH (
                    [Names],
                    CONCATENATEX ( VALUES ( Modules[Courses] ), [Courses], "," ),
                    1,
                    -1
                ) > 0
            ),
            VALUES ( Courses[student enrolled] )
        )
    )
RETURN
    AVERAGEX ( summary, [AVG] ) + 0

 

Matrix design:

23.png

Regards,

Xiaoxin Sheng

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

HI @Dee,

It is hard to share useful DAX formulas from your requirements and descriptions.

Please share some dummy data with a similar data structure and expected result to help us clarify your requirement and test to coding formula on it.

Regards,

Xiaoxin Sheng

Hi @Anonymous 

 

 I've edited the original post.

 

Thanks

Anonymous
Not applicable

Hi @Dee,

You can refer to the following measure formulas and matrix design to achieve your requirement:

 

Progress = 
VAR moduleList =
    CALCULATE (
        CONCATENATEX ( VALUES ( Modules[Courses] ), [Courses], "," ),
        ALLSELECTED ( Modules ),
        VALUES ( Modules[Modules] )
    )
VAR total =
    CALCULATE (
        PATHLENGTH(SUBSTITUTE(CONCATENATEX(VALUES(Modules[Courses]),[Courses],","),",","|")),
        ALLSELECTED ( Modules ),
        VALUES ( Modules[Modules] )
    )
VAR actual =
    CALCULATE (
        COUNT ( Courses[student enrolled] ),
        FILTER ( ALLSELECTED ( Courses ), SEARCH ( [Names], moduleList, 1, -1 ) > 0 ),
        VALUES ( Courses[student enrolled] )
    ) + 0
RETURN
    actual & "/" & total


avg grade =
VAR summary =
    SUMMARIZE (
        Courses,
        [student enrolled],
        "AVG", CALCULATE (
            AVERAGE ( Courses[Grade] ),
            FILTER (
                ALLSELECTED ( Courses ),
                SEARCH (
                    [Names],
                    CONCATENATEX ( VALUES ( Modules[Courses] ), [Courses], "," ),
                    1,
                    -1
                ) > 0
            ),
            VALUES ( Courses[student enrolled] )
        )
    )
RETURN
    AVERAGEX ( summary, [AVG] ) + 0

 

Matrix design:

23.png

Regards,

Xiaoxin Sheng

Thank you so much for this, seems like it's doing exactly what am looking for.

 

Could you kindly share with me the PBIX, to better understand the formulae used?

 

Thanks once again for going through all this trouble.

Anonymous
Not applicable

Hi @Dee,

In fact, you only need to create two measures on your table and rename its fields with your own table field names.

I also attached the same file below, you can check if it meets for your requirement.

Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@Dee , if this can help you https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104381544?tab=Overview

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
Greg_Deckler
Community Champion
Community Champion

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.