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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register 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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
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.