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
Anonymous
Not applicable

Need Help understand the logic of this DAX (will provide context)

Hi all,

 

I'm looking at someone else's project/dax right now and want to clarify this here: 

Hours Saved = SUMX(QueueDB, RELATED(queuesROI[timeValueMin]))/60
 
It's being used as a measure to Calculate the hours saved between Robots doing tasks vs. the Process Baselines (how long it takes person which is queuesROI[timeValueMin] - The dividing by 60 is to turn minutes into hours. 
 
I just don't understand what's being summed. I would assume we'd be summing the transaction execution time, but after referencing the table, it doesn't show a column being summed?
 
If anyone could dumb this down for me, I'd appreciate it.

Thank you
2 REPLIES 2
Anonymous
Not applicable

Your measure does exactly what this measure does:

 

[Hours Saved] =
calculate(
	sum( queuesROI[timeValueMin] ) / 60,
	crossfilter(
		// KeyTo_queuesROI and Key are fields
		// on which the tables join to each
		// other.
		QueueDB[KeyTo_queuesROI],
		queuesROI[Key],
		BOTH
	)
)

 

 

Jihwan_Kim
Super User
Super User

Hi,

I do not know how your data model looks like, but the concept of the measure that you showed is showing the calculation of the below. I might simplified too much but please share your sample pbix file, then I can try to look into it to come up with more relevant explanation.

 

Picture1.png

 

Link to the sample pbix file 

 

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


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.

Top Solution Authors