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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
alenknight
Frequent Visitor

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

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

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

alenknight_0-1638419986101.png

 

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

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.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.