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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
apohl1
Helper I
Helper I

Cumulated sum first row show as blank

Hi all,

 

I'm doing an analaysis where I'm grouping accounts based on their cumulated contribution (I do this both for potential and for sales). Please see formula below. The formula works well for one of the datasets (potential) but for the sales dataset (which is much bigger) it often return a blank for the account with largest sales. For all other accounts the calculation works correct but the largest account appear as blank/no contribution which is incorrect. Does anyone know what could be causing this?

 

Thank you in advance!

 

Cumulated Sales =
VAR thisAccountSales = [Sales] 
VAR TotalSalesAllAccounts =
CALCULATE([Sales],ALLSELECTED('C Account'[C. Account Name]))
var blanks = ISBLANK([Sales])

RETURN
SWITCH(
TRUE(),
blanks,BLANK(),
CALCULATE(
[Sales],
FILTER(ALLSELECTED('C Account'[C. Account Name]), [v]>= thisAccountSales)
) / TotalSalesAllAccounts )
 
6-22-2022 3-40-18 PM.jpg
1 REPLY 1
Anonymous
Not applicable

Hi @apohl1,

Can you please share a pbix or some dummy data that keep raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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