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
janalu
Regular Visitor

Sumif formula

Hello, I am trying to replicate sumif formula from excel highlighted in green below to power Bi but it does not work. Could you please advice? Formula form excel is: =SUMIF($E$2:$E$38;">="&E2;$E$2:$E$38)/SUM($E$2:$E$38)

 

Many thanks

 

Jana

 

sumif.JPG

7 REPLIES 7
Anonymous
Not applicable

As I understand, you want to get running Total of your Sales percentage  in Total Percentage.

 

You can achieve it through quick measure option.

 

I have also pasted the code below.

 

Sales% running total in Sales% =
CALCULATE(
    SUM('Table1'[Sales%]),
    FILTER(
        ALLSELECTED('Table1'[Sales%]),
        ISONORAFTER('Table1'[Sales%], MAX('Table1'[Sales%]), ASC)
    )
)
Ashish_Mathur
Super User
Super User

Hi,

 

Looks like you want to compute cumulative % i.e. F2 = F1+E2 and dragged down.  Am i correct?  Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish, yes that´s right! Could you please help me with the formula? Let me know if you can open the link below:

 

https://app.powerbi.com/groups/me/reports/68183f01-f29c-463d-bd0f-101f4e1f4a26?ctid=e0793d39-0939-49...

 

Thanks,

 

Jana

Hi,

 

I cannot download the PBI file from there.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi,

 

That seems to be a very big file.  Please share the download link of the abridged version (a couple of MB's only).


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Greg_Deckler
Super User
Super User

To emulate SUMIF you use CALCULATE with a SUM and a FILTER clause. 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.