Forum Discussion

muhammedaslam02's avatar
muhammedaslam02
Frequent Visitor
4 years ago
Solved

Trying merge two equation to single

Hai,

I am trying to put this two-equation to single. I want total number of raws from the data model with mentioned company name and water tags

Total Tickets = calculate(COUNTROWS(Data),FILTER(Data,Data[Company Name]="New company1 "||Data[Company Name]="New company2"||Data[Company Name]="New company3"|| Data[Company Name]="New company4"||Data[Company Name]="New company5"))


Water Tags = CALCULATE(COUNTROWS(Data),FILTER(Data,CONTAINSSTRING(Data[Tags],"water")))

Can you please help me Can you help me?

  • Total Tickets and Water Tags

    VAR vTT =

    Total Tickets = calculate(COUNTROWS(Data),FILTER(Data,Data[Company Name]="New company1 "||Data[Company Name]="New company2"||Data[Company Name]="New company3"|| Data[Company Name]="New company4"||Data[Company Name]="New company5"))

    VAR vWT=
    Water Tags = CALCULATE(COUNTROWS(Data),FILTER(Data,CONTAINSSTRING(Data[Tags],"water")))

     

    RETURN

    vTT&" - "& vWT

  • Hi muhammedaslam02 

    Thanks for reaching out to us.

    I just want to confirm if you resolved this issue? If yes, you can accept the answer helpful as the solution or share you method and accept it as solution, thanks for your contribution to improve Power BI.

    If you need more help, please let me know.

     

     

    Best Regards,

    Community Support Team _Tang

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

3 Replies

  • Total Tickets and Water Tags

    VAR vTT =

    Total Tickets = calculate(COUNTROWS(Data),FILTER(Data,Data[Company Name]="New company1 "||Data[Company Name]="New company2"||Data[Company Name]="New company3"|| Data[Company Name]="New company4"||Data[Company Name]="New company5"))

    VAR vWT=
    Water Tags = CALCULATE(COUNTROWS(Data),FILTER(Data,CONTAINSSTRING(Data[Tags],"water")))

     

    RETURN

    vTT&" - "& vWT

  • Total Tickets and Water Tags=

    VAR vTT =

    Total Tickets = calculate(COUNTROWS(Data),FILTER(Data,Data[Company Name]="New company1 "||Data[Company Name]="New company2"||Data[Company Name]="New company3"|| Data[Company Name]="New company4"||Data[Company Name]="New company5"))

    VAR vWT=
    Water Tags = CALCULATE(COUNTROWS(Data),FILTER(Data,CONTAINSSTRING(Data[Tags],"water")))

     

    RETURN

    vTT&" - "& vWT

  • v-xiaotang's avatar
    v-xiaotang
    Icon for Community Support rankCommunity Support

    Hi muhammedaslam02 

    Thanks for reaching out to us.

    I just want to confirm if you resolved this issue? If yes, you can accept the answer helpful as the solution or share you method and accept it as solution, thanks for your contribution to improve Power BI.

    If you need more help, please let me know.

     

     

    Best Regards,

    Community Support Team _Tang

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