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
ganes
Helper I
Helper I

display all status but complete status should include value of Approaching Expiry and Expired

display all status but complete status should include value of Approaching Expiry and Expired

I need complete count to be 147(complete + Approaching Expiry + Expired) How to do that
ganes_0-1710926947616.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @ganes 

According to your description, you want to generate more rows in the visual, however, according to the calculation rules, you must have 147 rows in the table (complete + Approaching Expiry + Expired), which is not realistic and is not supported in the logic of the table and in the current version of Power BI. You can use a card to display the total value or use the Summarize function to implement a virtual table, as shown below:
1.Use Card

SumValue =
CALCULATE (
    COUNTROWS ( 'Table' ),
    FILTER (
        'Table',
        'Table'[Status] = "Complete"
            || 'Table'[Status] = "Appproching Expiry"
            || 'Table'[Status] = "Expired"
    )
)

vyaningymsft_0-1711533154488.png

2. Use Summarize function

Table 2 =
SUMMARIZE (
    'Table',
    "SumCompleteandApprochingExpiryandExpired",
        CALCULATE (
            COUNTROWS ( 'Table' ),
            FILTER (
                'Table',
                'Table'[Status] = "Complete"
                    || 'Table'[Status] = "Appproching Expiry"
                    || 'Table'[Status] = "Expired"
            )
        ),
    "Complete",
        CALCULATE (
            COUNTROWS ( 'Table' ),
            FILTER ( 'Table', 'Table'[Status] = "Complete" )
        ),
    "Request Cancelled",
        CALCULATE (
            COUNTROWS ( 'Table' ),
            FILTER ( 'Table', 'Table'[Status] = "Request Cancelled" )
        ),
    "Appproching Expiry",
        CALCULATE (
            COUNTROWS ( 'Table' ),
            FILTER ( 'Table', 'Table'[Status] = "Appproching Expiry" )
        ),
    "Expired",
        CALCULATE (
            COUNTROWS ( 'Table' ),
            FILTER ( 'Table', 'Table'[Status] = "Expired" )
        )
)

vyaningymsft_1-1711533179345.png

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi, @ganes 

According to your description, you want to generate more rows in the visual, however, according to the calculation rules, you must have 147 rows in the table (complete + Approaching Expiry + Expired), which is not realistic and is not supported in the logic of the table and in the current version of Power BI. You can use a card to display the total value or use the Summarize function to implement a virtual table, as shown below:
1.Use Card

SumValue =
CALCULATE (
    COUNTROWS ( 'Table' ),
    FILTER (
        'Table',
        'Table'[Status] = "Complete"
            || 'Table'[Status] = "Appproching Expiry"
            || 'Table'[Status] = "Expired"
    )
)

vyaningymsft_0-1711533154488.png

2. Use Summarize function

Table 2 =
SUMMARIZE (
    'Table',
    "SumCompleteandApprochingExpiryandExpired",
        CALCULATE (
            COUNTROWS ( 'Table' ),
            FILTER (
                'Table',
                'Table'[Status] = "Complete"
                    || 'Table'[Status] = "Appproching Expiry"
                    || 'Table'[Status] = "Expired"
            )
        ),
    "Complete",
        CALCULATE (
            COUNTROWS ( 'Table' ),
            FILTER ( 'Table', 'Table'[Status] = "Complete" )
        ),
    "Request Cancelled",
        CALCULATE (
            COUNTROWS ( 'Table' ),
            FILTER ( 'Table', 'Table'[Status] = "Request Cancelled" )
        ),
    "Appproching Expiry",
        CALCULATE (
            COUNTROWS ( 'Table' ),
            FILTER ( 'Table', 'Table'[Status] = "Appproching Expiry" )
        ),
    "Expired",
        CALCULATE (
            COUNTROWS ( 'Table' ),
            FILTER ( 'Table', 'Table'[Status] = "Expired" )
        )
)

vyaningymsft_1-1711533179345.png

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

 

Gabry
Super User
Super User

It depends on how is arranged your model, you can do this with a calculated column.

 

show the measure used. Anyway this could be the formula:

 

IF(SELECTEDVALUE([status])="complete", CALCULATE(SUM([numbers]), [status]="complete" || [status]="expired" || [status]="Approaching"),SUM([number]))

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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