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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

True/False Expression doesn't specify a column error

Hi Everybody,

 

I'm stuck with a problem that I'm not able to solve.

 

I got this expression:

 VAR Perf = [VAL2]
        RETURN
        CALCULATE(DISTINCTCOUNT(Sportelli[COD_BANCA]),Performance[COD_AREA]=2,Perf>0.5)
 

Measure VAL2 is this: 

CALCULATE(SUM(Performance[VAL_NUMERATORE])/SUM(Performance[VAL_DENOMINATORE]))
 
When i try to load this dax expression i got True/False Expression doesn't specify a column error.
 
Do you have any hint?
 
Thanks
3 REPLIES 3
Anonymous
Not applicable

Hi @mlsx4 , it works, but inthis way i cannot compare data.

i have two tables, banks and performances... banks tables is a dimension table in which i have duplicated values banks according to their multiple branches.

 

in performance table, the fact one, i have two column, numerator and denominator, that i have summed up in VAL 2 measure.

 

What i'm trying to do is to count all the banks (not branches) that have val 2 > 50 (or 0.5 if in decimal visual).

so i need to take into account that value.

 

How can i reach that ?

Hi @Anonymous 

 

I was not trying to make it work with the definite result, but just to check if the problem is with the condition. I suppose you need to do something else, but I cannot figure out how to do it without the structure or data. Can you post some example (with dummy data)?

mlsx4
Memorable Member
Memorable Member

Hi @Anonymous 

 

 True/False Expression are errors mainly related to CALCULATE function. I think the problem is with the part of: Perf>0.5. But without any knowledge about data or structure is difficult to know. 

What I would do is to split the expressions. I mean try to do 

Measure= CALCULATE(DISTINCTCOUNT(Sportelli[COD_BANCA]),Performance[COD_AREA]=2)

If it works, then the problem is with Perf. 

Helpful resources

Announcements
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.