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! Request now

Reply
FOXYBARK
Helper III
Helper III

How to calculate a simple sum of [measure] to use in a % of total calculation

Hi. 

I would like to have a calculation to show my total sum of [Daily Badge Counts] (168431). My attempt to show this is in my [test2] calc below. [Daily Badge Counts] is a measure. Ultimately, I want to calc a % of grand total. 

 

I have the following table to show my existing data. 

FOXYBARK_0-1686068976974.png

Here is my [test2] meaure. 

test2 = CALCULATE(
[Daily Badge Counts],
all(Badge[BADGE_SCAN_DAYOFWK_TXT]))

 

Daily Badge Counts = CALCULATE(DISTINCTCOUNT(Badge[Badge&Date ID]))
 
Thanks
1 ACCEPTED SOLUTION
some_bih
Super User
Super User

Hi @FOXYBARK , try measure

test2=

DIVIDE([Daily Badge Counts],
    CALCULATE(
        [Daily Badge Counts],
        ALL(SHEET17)
    )
)
 
SHEET17 replace with your table name. I hope this help




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






View solution in original post

2 REPLIES 2
some_bih
Super User
Super User

Hi @FOXYBARK , try measure

test2=

DIVIDE([Daily Badge Counts],
    CALCULATE(
        [Daily Badge Counts],
        ALL(SHEET17)
    )
)
 
SHEET17 replace with your table name. I hope this help




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Thank you. I ended up using the ALLSELECTED to accomodate my data. But it works. 

test2=

DIVIDE([Daily Badge Counts],
    CALCULATE(
        [Daily Badge Counts],
        ALLSELECTED(SHEET17)
    )
)

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.