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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
muhammedaslam02
Frequent Visitor

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?

2 ACCEPTED SOLUTIONS
thiagocamillo
Helper I
Helper I

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

View solution in original post

v-xiaotang
Community Support
Community 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.

View solution in original post

3 REPLIES 3
v-xiaotang
Community Support
Community 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.

thiagocamillo
Helper I
Helper I

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

thiagocamillo
Helper I
Helper I

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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