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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.