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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply

cannot convert value type text to type true/false - error is not resolving

Hi All,

I've below dax. Suddenly I'm getting error of "cannot convert value type text to type true/false" and tried lot of methods but its not resolving. Can anyone please guide me here. Request ID is general type rest all columns in Text. Please suggest..

Running Total = 
CALCULATE(COUNT('SRQ PP'[Request ID]),
FILTER(ALLEXCEPT('SRQ PP','SRQ PP'[Client Region],'SRQ PP'[Assoc Team],'SRQ PP'[Request Type - TAT],'SRQ PP'[Final Closed Month]),
'SRQ PP'[Rank]<=MAX('SRQ PP'[Rank])))

--------------------------------

Running Total% = 
DIVIDE(
CALCULATE(
COUNT('SRQ PP'[Request ID]),
FILTER(ALLEXCEPT('SRQ PP','SRQ PP'[Client Region],'SRQ PP'[Assoc Location],'SRQ PP'[Request Type - TAT],'SRQ PP'[Final Closed Month]),
'SRQ PP'[Rank] <= MAX('SRQ PP'[Rank]))),

CALCULATE(
COUNT('SRQ PP'[Request ID]),
FILTER(ALLEXCEPT('SRQ PP','SRQ PP'[Client Region],'SRQ PP'[Assoc Location],'SRQ PP'[Request Type - TAT]),'SRQ PP'[Final Closed Month])))

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@PowerBIBeginer , there is not filter condition here

 

FILTER(ALLEXCEPT('SRQ PP','SRQ PP'[Client Region],'SRQ PP'[Assoc Location],'SRQ PP'[Request Type - TAT]),'SRQ PP'[Final Closed Month])

 

what filter you want on month

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4

Hi Amit,

Thanks for reply. I didnt get but filter on month?

amitchandak
Super User
Super User

@PowerBIBeginer , there is not filter condition here

 

FILTER(ALLEXCEPT('SRQ PP','SRQ PP'[Client Region],'SRQ PP'[Assoc Location],'SRQ PP'[Request Type - TAT]),'SRQ PP'[Final Closed Month])

 

what filter you want on month

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak ,

 

I am trying to calculate values in % such as every X-axis value is considered 100%, hence using filter in my DAX, but getting the error for cannot convert text type to true/false. I am using following DAX:

 

%Emotion = DIVIDE(CALCULATE(DISTINCTCOUNT('SportRec QB5'[uuid]), FILTER('SportRec QB5','SportRec QB5'[Emotion])),CALCULATE(DISTINCTCOUNT('SportRec QB5'[uuid]),ALL()))
 
Can you help me ?

Hi Amit, got your point now.. in denominator there should not be filter, its entire count.. Great Thanks..!!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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