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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.