Dax Formula for Parameter table with multiple (Greater Than) conditions

jejnycta

New Member
Joined
Nov 18, 2016
Messages
7
I have the following "Scale" parameter table with 2 columns:
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]Overtime Hours Worked
[/TD]
[TD]Value
[/TD]
[/TR]
[TR]
[TD]<25
[/TD]
[TD]24
[/TD]
[/TR]
[TR]
[TD]>=25
[/TD]
[TD]25
[/TD]
[/TR]
[TR]
[TD]>=50
[/TD]
[TD]50
[/TD]
[/TR]
[TR]
[TD]>=75
[/TD]
[TD]75
[/TD]
[/TR]
</tbody>[/TABLE]

Following is a sample "OT Data" table
[TABLE="class: grid, width: 200, align: left"]
<tbody>[TR]
[TD]Employee
[/TD]
[TD]OT Hours Worked
[/TD]
[/TR]
[TR]
[TD]John
[/TD]
[TD="align: center"]30
[/TD]
[/TR]
[TR]
[TD]Mark
[/TD]
[TD="align: center"]60
[/TD]
[/TR]
[TR]
[TD]Luke
[/TD]
[TD="align: center"]70
[/TD]
[/TR]
[TR]
[TD]Mathew
[/TD]
[TD="align: center"]80
[/TD]
[/TR]
[TR]
[TD]Joseph
[/TD]
[TD="align: center"]90
[/TD]
[/TR]
</tbody>[/TABLE]










This is my attempt to create a DAX formula that when a slicer is selected such as >=75, the pivot table should show 2 instances (Mathew & Joseph) with total:170 OT Hours Worked:

ScaledOTWorked:=IF(HASONEVALUE(Scale[Value]),.......................... I only got this far. Please help

Thanks!!!!
 

Forum statistics

Threads
1,226,796
Messages
6,193,048
Members
453,772
Latest member
aastupin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top