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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
HarsimPWRBI
Frequent Visitor

Why does Values shows blank row even if there are none?

Hey Tech buddies,

 

I'm reading the-definitive-guide-to-dax and in Chapter 3 FIGURE 3-15  has a pivot table.

Which shows 1 for column "Values Products" with "Sales Amount" of $16.90.

 

The Reason It states , is there are sales for product for which there's no data in Product table.

 

But If i go to database and execute below query there's no rows like same.

USE ContosoRetailDW
GO

SELECT * FROM [DaxBook].[Sales] a
WHERE NOT EXISTS (SELECT 1 FROM [DaxBook].[Product] b WHERE a.ProductKey=b.ProductKey)

 

Moreover i tried to rollup in database but there i got only three rows for class with their aggregrate Sales Amount

 


SELECT b.Class, SUM(a.Quantity*a.[Unit Price]) AS SalesAmount FROM [DaxBook].[Sales] a
right JOIN DaxBook.Product b
ON a.ProductKey=b.ProductKey
GROUP BY b.Class

 

Please suggest.

 

Database and PowerBI Model for same

 

Thanks,

Harry

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @HarsimPWRBI,

 

It would be better that you could provide some sample data to describe the problem. How to Get Your Question Answered Quickly

 

Besides, for any errata you find, you could contact the related team via the "report it to us" link.

1.PNG

 

Best regards,

Yuliana Gu

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

Hi @v-yulgu-msft,

 

As recommended I've added Database and PowerBI model for my query related to same.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors