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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sg919
Frequent Visitor

The true/false expression does not specify a column

Hello - novice here.  Trying to fix an the "true/false" expression error from a query I inherited.  I am using Power BI Desktop, Version: 2.105.664.0 64-bit (May 2022).  This query connects to our database server.  I did read through the other similar posts, however not knowledgeable enough to attempt to modify the query.  Appreciate your assistance.

 

 

 

 

Sum Avg Calls/AE/Week per DSM_Name = 
CALCULATE (
    KEEPFILTERS ( VALUES ( 'Current Territory Alignments'[DSM_Name] ) ),
    DIVIDE (
        DIVIDE (
            DISTINCTCOUNT ( 'Call Activity'[Call_ID] ),
            DISTINCTCOUNT ( 'Call Activity'[Call_Dt (bins)] )
        ),
        DISTINCTCOUNT ( 'Call Activity'[Employee_ID] )
    )
)

 

 

 

 

 

1 ACCEPTED SOLUTION

Hi @sg919,

You can try to use the following measure formula if it is suitable for your requirement:

formula =
CALCULATE (
    DISTINCTCOUNT ( 'Call Activity'[Call_ID] )
        / DISTINCTCOUNT ( 'Call Activity'[Call_Dt (bins)] )
        / DISTINCTCOUNT ( 'Call Activity'[Employee_ID] ),
    ALLSELECTED ( 'Call Activity' ),
    VALUES ( 'Current Territory Alignments'[DSM_Name] )
)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

5 REPLIES 5
rocky09
Solution Sage
Solution Sage

I suspect the data type of the column might be auto-selected as True/False. Check once.

sg919
Frequent Visitor

Not sure how to check.  When I click on the column here's what I see.
snapshot2.jpg

ribisht17
Super User
Super User

Here's a sample of the data

DSM NameEmployee_IDCall_IDCall_Dt (bins)
Manager 112345672715164974/17/2022
Manager 112345672714391674/24/2022
Manager 112345672721730955/1/2022
Manager 112345672721730595/1/2022
Manager 112345672721731435/1/2022
Manager 17586972705744444/17/2022
Manager 17586972707132274/17/2022
Manager 17586972702245444/17/2022
Manager 197364552698567994/24/2022
Manager 197364552714100064/24/2022
Manager 197364552711500564/24/2022
Manager 197364552711267894/24/2022
Manager 197364552710393784/24/2022
Manager 197364552715692825/1/2022
Manager 197364552715722085/1/2022
Manager 197364552698222445/1/2022
Manager 2646477482704424484/17/2022
Manager 2646477482707415444/17/2022
Manager 2646477482703445294/17/2022
Manager 2646477482707398384/17/2022
Manager 2646477482707390364/17/2022
Manager 2646477482713307134/24/2022
Manager 2646477482718067605/1/2022
Manager 2646477482715975295/1/2022
Manager 2646477482720925865/1/2022
Manager 26454232701728244/17/2022
Manager 26454232702376184/17/2022
Manager 26454232709022614/24/2022
Manager 26454232720776915/1/2022
Manager 26454232719478255/1/2022
Manager 26454232721016055/1/2022
Manager 26454232715493735/1/2022

Hi @sg919,

You can try to use the following measure formula if it is suitable for your requirement:

formula =
CALCULATE (
    DISTINCTCOUNT ( 'Call Activity'[Call_ID] )
        / DISTINCTCOUNT ( 'Call Activity'[Call_Dt (bins)] )
        / DISTINCTCOUNT ( 'Call Activity'[Employee_ID] ),
    ALLSELECTED ( 'Call Activity' ),
    VALUES ( 'Current Territory Alignments'[DSM_Name] )
)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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