Reply
alenknight
Frequent Visitor
Partially syndicated - Outbound

ALLNOBLANKROW summary confusion? help understanding

I got some help recently with a dataset, to remove blank records - using ALLNOBLANKROW from this :

Solved: Re: How to show only records with data - Microsoft Power BI Community

 

This worked... however, when i expand the dataset, essentially when every Store (column) has a value, the result is just a summary, and not showing every store.  i tried changing the parameters around, but i can't seem to figure it out.  I want the script to show every store and their respective calculations... except the ones  that have blank records.  (ie  don't summarize and remove the stores).  if they all have data, then show them all... or show only the ones that have data in every record.

 

here's my dataset :

StoresProductSales
Store1A15.39
Store2B314.99
Store1C15.95
Store2B16
Store3C319.99
Store2B439.99
Store2A16.5
Store1B16.5
Store3C165
Store2C165
Store1B16.69
Store2A16.99
Store2B16.99
Store1A17.09
Store2C17.5
Store3C17.5
Store1A87.69
Store2B354.49
Store1B17.99
Store1A17.99
Store2C17.99
Store1B17.99
Store2A18
Store1B359.8
Store2B359.8
Store1A359.99
Store2B365
Store2D369
Store1A18.49
Store2D18.49
Store1C18.5
Store3D36.99
Store3D369.69
Store3D369.99
Store3B369.99
Store2B369.99
Store3A499.5
Store3D18.75

 

 

Here's my measure (from the prior solution) :

Sales only has ALL Products: =
VAR allproductslist =
ALLNOBLANKROW ( Sheet1[product] )
VAR currentstore_productlist =
CALCULATETABLE ( VALUES ( Sheet1[product] ), ALL ( Sheet1[product] ) )
VAR conditions =
IF ( COUNTROWS ( allproductslist ) = COUNTROWS ( currentstore_productlist ), 1 )
VAR result =
IF ( conditions = 1, SUM ( sheet1[Sales] ) )
RETURN
result
 
and here's what it's looking like (i should see stores in columns, but instead it's summarizing them all)
alenknight_0-1637093995168.png

 

 

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Syndicated - Outbound

Hi @alenknight ,

 

You missed the [Stores] column in Rows field.

Capture.PNG

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

3 REPLIES 3
alenknight
Frequent Visitor

Syndicated - Outbound

i'm not sure how you are getting that.... i have [STORES] column in the rows field... still showing same...

alenknight_0-1638419986101.png

 

Syndicated - Outbound

Hi @alenknight ,

 

Please check the PBIX file that I create according to the sample data you shared. I just use the data and formula and did not make any change.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
v-jayw-msft
Community Support
Community Support

Syndicated - Outbound

Hi @alenknight ,

 

You missed the [Stores] column in Rows field.

Capture.PNG

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)