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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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