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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
mamedoff_korea
Frequent Visitor

How to add a drop down selection to the Total annual amount

I have a table with 12 rows for months that show the total sales amount for that month

each month also have a drop down menu with three sections that show 3 diferent product groups with the relevant sales amount.

Below the table is of course the Total number for that year which shows the total sales for all product groups for a whole year

 

what I want to do is to add similar three product groups below the Total so I can see the annual total for each of the three A, B , C product group. Each of them will show the sales amount for the 12 months.

 

How do I add that drop down menu below the Total?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @mamedoff_korea ,

 

Are you referring to the creation of a column below the Visual Total row to view the information, according to the design of Power BI can not be achieved for the time being, but you can consider the creation of a new table to carry out the operation of the Union, in the row above the Total row to add the information.

vyangliumsft_0-1694416543175.png

 

Here are the steps you can follow:

1. Create calculated table.

Table2 =
VAR _table1 =
    SUMMARIZE (
        'Table',
        'Table'[Date],
        'Table'[Group],
        "Value",
            DIVIDE (
                SUMX (
                    FILTER (
                        ALL ( 'Table' ),
                        YEAR ( 'Table'[Date] ) = YEAR ( EARLIER ( 'Table'[Date] ) )
                            && 'Table'[Group] = EARLIER ( 'Table'[Group] )
                    ),
                    [Value]
                ),
                COUNTX (
                    FILTER (
                        ALL ( 'Table' ),
                        YEAR ( 'Table'[Date] ) = YEAR ( EARLIER ( 'Table'[Date] ) )
                            && 'Table'[Group] = EARLIER ( 'Table'[Group] )
                            && 'Table'[Month] = [Month]
                    ),
                    [Value]
                )
            ),
        "Month", "Year_Value"
    )
VAR _table2 =
    UNION ( 'Table', _table1 )
RETURN
    _table2

vyangliumsft_1-1694416543177.png

2. Create calculated column.

Rank =
IF (
    [Month] <> "Year_Value",
    VALUE ( 'Table2'[Month] ),
    COUNTX ( ALL ( 'Table2' ), [Value] )
)

vyangliumsft_2-1694416596219.png

3. Create calculated table.

Table3 =
SUMMARIZE ( 'Table2', 'Table2'[Month], 'Table2'[Rank] )

4. Connecting the relationship between two tables.

vyangliumsft_3-1694416596221.png

5. Select Table3[Month] – Column tools – Sort by column – [Rank].

vyangliumsft_4-1694416659551.png

6. Result:

vyangliumsft_5-1694416659559.png

 

 

Best Regards,

Liu Yang

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

1 REPLY 1
Anonymous
Not applicable

Hi  @mamedoff_korea ,

 

Are you referring to the creation of a column below the Visual Total row to view the information, according to the design of Power BI can not be achieved for the time being, but you can consider the creation of a new table to carry out the operation of the Union, in the row above the Total row to add the information.

vyangliumsft_0-1694416543175.png

 

Here are the steps you can follow:

1. Create calculated table.

Table2 =
VAR _table1 =
    SUMMARIZE (
        'Table',
        'Table'[Date],
        'Table'[Group],
        "Value",
            DIVIDE (
                SUMX (
                    FILTER (
                        ALL ( 'Table' ),
                        YEAR ( 'Table'[Date] ) = YEAR ( EARLIER ( 'Table'[Date] ) )
                            && 'Table'[Group] = EARLIER ( 'Table'[Group] )
                    ),
                    [Value]
                ),
                COUNTX (
                    FILTER (
                        ALL ( 'Table' ),
                        YEAR ( 'Table'[Date] ) = YEAR ( EARLIER ( 'Table'[Date] ) )
                            && 'Table'[Group] = EARLIER ( 'Table'[Group] )
                            && 'Table'[Month] = [Month]
                    ),
                    [Value]
                )
            ),
        "Month", "Year_Value"
    )
VAR _table2 =
    UNION ( 'Table', _table1 )
RETURN
    _table2

vyangliumsft_1-1694416543177.png

2. Create calculated column.

Rank =
IF (
    [Month] <> "Year_Value",
    VALUE ( 'Table2'[Month] ),
    COUNTX ( ALL ( 'Table2' ), [Value] )
)

vyangliumsft_2-1694416596219.png

3. Create calculated table.

Table3 =
SUMMARIZE ( 'Table2', 'Table2'[Month], 'Table2'[Rank] )

4. Connecting the relationship between two tables.

vyangliumsft_3-1694416596221.png

5. Select Table3[Month] – Column tools – Sort by column – [Rank].

vyangliumsft_4-1694416659551.png

6. Result:

vyangliumsft_5-1694416659559.png

 

 

Best Regards,

Liu Yang

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

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors