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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
qthuynh
Frequent Visitor

Subtotal based on Dynamic Measure

Hi,

 

I created a dashboard with built-in dynamic switch to show the top and bottom 5, 10, and 15 performers by products and salespeople (similar to this dashboard). We have over 500+ products and 200+ salespeople.

 

Based on the dashboard link, Total revenue was $4B. The dashboard displays the top 5 products by revenue when selected, but mgt wants to see the total top 5 and % of the total (e.g. total products revenue were $4B. Top 5 product sales is $0.58B. Top 5 % of Total iss 14.5%).

 

Is there a measure that can summarize only the top/bottom products that are being displayed?

 

sum.JPG

 

Link to download working dashboard with dynamic filters.

2 REPLIES 2
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @qthuynh,

 

It could be a measure as below. Can you share a sample please?

Measure =
SUMX (
    TOPN (
        5,
        SUMMARIZE (
            FactSales,
            'DimProduct'[ColorName],
            "salestotal", SUM ( FactSales[SalesQuantity] )
        ),
        [salestotal]
    ),
    [salestotal]
)

Best Regards,

Dale

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

@v-jiascu-msft

 

Sample data has been added to the post above. I need a way to subtotal the (Top/Bottom 5, 10, 15) savings or spend that is being displayed in the bar chart. 

 

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.