Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Query
Unanswered

Table Pivot = Cannot convert null to logical

(0) ShareShare
ReportReport
Posted on by

Hello. I am trying to pivot some columns with power query and something broke in the process since the last time I set it up. 

 

The code auto generated by power bi: 

= Table.Pivot(#"Added Custom3", List.Distinct(#"Added Custom3"[SeriesType]), "SeriesType", "Value", List.Sum)

 

The error message: 

Expression.Error: We cannot convert the value null to type Logical.
Details:
Value=
Type=[Type]

 

I know that something is coming up null, but am not adept at the code enough to know how to remove the null values during this step. The "Value" column is a decimal, and transforming nulls to 0 will likely affect other calculations done after this step. Any suggestions on what the adapted code should look like?

 

Thank you!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Query

#1
ronaldwalcott Profile Picture

ronaldwalcott 2

Overall leaderboard

Featured topics