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
NathanKatsu
New Member

Creating a table from another table with filters

HI All,

 

I am a not a pro Power Bi user  but have the basics down and have created many reports.  Below you will see a source table - GoldList.  I am trying to create a new table that is a summary of the Customers and their Upgrade status.  If all devices for the customerr are Complete or Out Of Scope, they are considered to be Completed.  Any other status will make them Not Done.

 

Thank you and appreciate any help!

 

 

NathanKatsu_0-1697827514723.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @NathanKatsu ,

 

You can try code as below to create a calculated table.

GoldListSummary =
SUMMARIZE (
    GoldList,
    GoldList[Customer],
    "Total Devices", CALCULATE ( COUNT ( GoldList[Device Name] ) ),
    "# Remaining",
        CALCULATE (
            COUNT ( GoldList[Device Name] ),
            NOT ( GoldList[Upgrade Status] IN { "Completed", "Out of Scope" } )
        ) + 0,
    "Done?",
        IF (
            CALCULATE (
                COUNT ( GoldList[Device Name] ),
                NOT ( GoldList[Upgrade Status] IN { "Completed", "Out of Scope" } )
            ) + 0 = 0,
            "Completed",
            "Not Done"
        )
)

vrzhoumsft_0-1698038464705.png

You can also create a table visual with measures.

Total Devices = CALCULATE(COUNT(GoldList[Customer]))
# Remaining = 
        CALCULATE (
            COUNT ( GoldList[Device Name] ),
            NOT ( GoldList[Upgrade Status] IN { "Completed", "Out of Scope" } )
        ) + 0
Done? = 
IF (
            [# Remaining] = 0,
            "Completed",
            "Not Done"
        )

Result is as below.

vrzhoumsft_1-1698038842437.png

 

Best Regards,
Rico Zhou

 

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

2 REPLIES 2
Anonymous
Not applicable

Hi @NathanKatsu ,

 

You can try code as below to create a calculated table.

GoldListSummary =
SUMMARIZE (
    GoldList,
    GoldList[Customer],
    "Total Devices", CALCULATE ( COUNT ( GoldList[Device Name] ) ),
    "# Remaining",
        CALCULATE (
            COUNT ( GoldList[Device Name] ),
            NOT ( GoldList[Upgrade Status] IN { "Completed", "Out of Scope" } )
        ) + 0,
    "Done?",
        IF (
            CALCULATE (
                COUNT ( GoldList[Device Name] ),
                NOT ( GoldList[Upgrade Status] IN { "Completed", "Out of Scope" } )
            ) + 0 = 0,
            "Completed",
            "Not Done"
        )
)

vrzhoumsft_0-1698038464705.png

You can also create a table visual with measures.

Total Devices = CALCULATE(COUNT(GoldList[Customer]))
# Remaining = 
        CALCULATE (
            COUNT ( GoldList[Device Name] ),
            NOT ( GoldList[Upgrade Status] IN { "Completed", "Out of Scope" } )
        ) + 0
Done? = 
IF (
            [# Remaining] = 0,
            "Completed",
            "Not Done"
        )

Result is as below.

vrzhoumsft_1-1698038842437.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

littlemojopuppy
Community Champion
Community Champion

@NathanKatsu why do you need a new table for this?

 

Wouldn't creating appropriate measures be better?

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.