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
Kolk1979
Frequent Visitor

Multiple results in one formula

Hi Everyone,

 

I created 3 new columns with the following formula's:

 

Raw_Daytime = IF(RELATED(TimeRegistrationReasons[reason])="Support - Daytime (100%)"; [timeSpent_inSeconds] ; IncidentTimeRegistrations[Time])

 

Daytime = FORMAT((IncidentTimeRegistrations[Raw_Daytime]/3600)/24; "HH:mm:ss")

 

Daytime_Total = SUM(IncidentTimeRegistrations[Daytime])

The last rule is a measurement.

 

Basically i filter the raw_daytime (which is text), convert it to hours and minutes and summarize it all.

I have it working with 3 formula's and 3 columns but i want to have it in 1 column if possible.

 

Thanks in advance,

 

 

 

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Kolk1979,

 

You may just use <expression> in SUMX.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@Kolk1979,

 

You may just use <expression> in SUMX.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the 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.