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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Divide function not displaying or working with slicers

Hi, 

I have two data sets looking at prevelance which already have prevelance figure, which works when you use slicers, but when no slicer is active it displays the below, which is incorrect. 

BINoob_0-1652958895517.png
However when you filter down using the type and location it displays correctly: 

BINoob_1-1652958948077.png


I want to create a divide measure which will replace the column for me which will divide Register column by List Size and work work if no slicers are present and if they are. 
I tried the following: 

GP Prev (%) = DIVIDE(
SUM('GPTables'[List size]),
SUM('GPTables'[Register])
,0
)
Which displays a figure which doesn't add up at all: 
BINoob_2-1652959075113.png

 

Can anyone provoide assistance? thank you!

 

 

1 ACCEPTED SOLUTION
NickolajJessen
Solution Sage
Solution Sage

Hi @Anonymous,

The figure makes sense:
13222 / 485 = 27.26 (2726%)

Can you share the measure for Prevalence (%)?
and Data model?

View solution in original post

2 REPLIES 2
NickolajJessen
Solution Sage
Solution Sage

Hi @Anonymous,

The figure makes sense:
13222 / 485 = 27.26 (2726%)

Can you share the measure for Prevalence (%)?
and Data model?

Anonymous
Not applicable

Hi Nickola, 

I'm an idiot and I figured it out! I just had the denominator and numerator the wrong way around. I didn't notice until you said it makes sense ahah!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.