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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
smukherjee
Frequent Visitor

Total of SUMX measure not displaying

Hi, I have a SUMX DAX that I am using to do a calculation as below

 

PRINCIPAL_DIS_ACTUAL =
VAR A =
SELECTEDVALUE ( V_D_EXCHANGE_RATE[RATE] )
VAR b =
CALCULATE (
SUMX ( FILTER (
V_F_DISBURSEMENT,
V_F_DISBURSEMENT[PAYMENT_DT] >= MIN ( FROM_DATE[Date] )
&& V_F_DISBURSEMENT[PAYMENT_DT] <= MAX ( DATES[Date] )
), V_F_DISBURSEMENT[PRINCIPAL_DIS] * A )
)
RETURN
b


Both the columns used in the multiplication are of type decimal. But in the final result in table visualisation the total isn't displayed for the measure as shown below. Any help is appreciated.

 

smukherjee_0-1624961884068.png

 

2 REPLIES 2
v-janeyg-msft
Community Support
Community Support

Hi, @smukherjee 

 

Have you tried to use sumx(summarize()) to display total?

Like this:

PRINCIPAL_DIS_ACTUAL =
SUMX (
    SUMMARIZE (
        V_F_DISBURSEMENT,
        [column1]//related column,
        "a",
            VAR A =
                SELECTEDVALUE ( V_D_EXCHANGE_RATE[RATE] )
            RETURN
                SUMX (
                    FILTER (
                        V_F_DISBURSEMENT,
                        V_F_DISBURSEMENT[PAYMENT_DT] >= MIN ( FROM_DATE[Date] )
                            && V_F_DISBURSEMENT[PAYMENT_DT] <= MAX ( DATES[Date] )
                    ),
                    V_F_DISBURSEMENT[PRINCIPAL_DIS] * A
                )
    ),
    [a]
)

If it doesn't solved your problem,please share some sample data and feel free to ask me.

 

Best Regards

Janey Guo

 

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

mahoneypat
Microsoft Employee
Microsoft Employee

If the Rate column is in your visual, SELECTEDVALUE will return blank in the total row.  You need to use a different expression, or assign a default value for SELECTEDVALUE(Table[Rate], defaultvalue).

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors