Forum Discussion

GusAlmasi's avatar
GusAlmasi
Regular Visitor
3 years ago
Solved

Creating a measure

Hi All,

Below is a screenshot of my date table

I am creating the below meassure using it in my visual. However; as you can see it does not return any value. Could you please let me know what the issue is?

 

Thank you

 

Closing WIP =
var SFY = SELECTEDVALUE(dDate[NY])
return
CALCULATE(
        sum(Data[Amount])/1000,
        aLL(dDate),
        ALL(Task[Task_Type]),
        FILTER(dDate,dDate[FY]=SFY),
        FILTER(Accounts,Accounts[Natural_Account]=1832)
        )

 

 

 

 

2 Replies

  • GusAlmasi , do you have any value for Accounts[Natural_Account]=1832 ?

     

     

    try like

     

    Closing WIP =
    var SFY = SELECTEDVALUE(dDate[NY])
    return
    CALCULATE(
    sum(Data[Amount])/1000,
    aLL(dDate),
    ALL(Task[Task_Type]),
    FILTER(dDate,dDate[FY]=SFY),
    FILTER(all(Accounts),Accounts[Natural_Account]=1832)
    )

  • Hi GusAlmasi ,

     

    Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or if you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

     

    Refer to:

    How to provide sample data in the Power BI Forum

    How to Get Your Question Answered Quickly

     

    Best Regards,

    Jianbo Li

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.