COUNTIFS Multiple Criteria in Power BI

VBE313

Well-known Member
Joined
Mar 22, 2019
Messages
686
Office Version
  1. 365
Platform
  1. Windows
How can I create a measure in Power BI that is like the formula in cell E2? I want to count the number of Orders that are "LESS THAN Today" and "LESS THAN 100% Complete".

Snag_4779ff1.png
 

Attachments

  • Snag_4777567.png
    Snag_4777567.png
    24.6 KB · Views: 27

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Solved

Power Query:
Total Late = COUNTROWS(
FILTER(
ALL(Table1),
Table1[Customer Due Date] < TODAY() && Table1[Percent Complete] < 1
)
)
 
Last edited by a moderator:
Upvote 0
Solution
Hi,
I have similar issue and trying to solve my problem in power pivot writing a measure; I have achieved to solve my problem actually using excel function but I want to solve it using dax and measure

In this data, there are years where problem occurred, event descriptions and finally lost hours.
As a rule, to call an event as a cause;
  • Same event should happen 4 times or more in that year. In this case, total lost hours might be less than 8 hours
  • Same event might happen less than 4 times in that year. In this case, total lost hours should be more than 8 hours
I will be so glad if you could help me to create a dax measure look similar to my excel formula. Thanks help and comments!

Test.xlsx
ABCDEFGHIJK
1PlantDepartmentDescription Lost hoursLost TonsYearQuarterMonthMonth NameWeekCause
2SRIProductionLow Pressure Pump A2,6221202225May21No
3SRIProductionBroken Chain Drive B2,1182202225May21No
4SRIProductionBroken Chain Drive A0,868202225May20No
5SRIProductionBroken Chain Drive B1,5130202225May20No
6SRIProductionA1234TT0,974202225May20No
7SRIProductionA1234TT0,14202225May20No
8SRIProductionB758PT0,642202225May20No
9SRIProductionB758PT0,14202225May20No
10SRIProductionSDT0,323202225May20No
11SRIMaintenanceSDT0,426202225May20No
12SRIProductionBroken Roller0,217202225May20No
13SRIProductionBroken Pump A2148202225May20No
14SRIProductionBroken Pump A0,429202225May20No
15SRIProductionGrinder B dwon189202225May20No
16SRIProductionDowntime 0,213202225May20No
17SRIMaintenanceDowntime 0,19202225May20No
18SRIProductionGrinder B dwon03202225May20No
19SRIProductionB758PT0,329202225May20No
20SRIProductionStart up after downtime0,215202225May20No
21SRIProductionLow Temperature Heater A1,4122202225May20No
22SRIOtherSdt17,11,265202225May20Yes
23SRIProductionLow Temperature Heater A02202225May20No
24SRIProductionBroken Roller0,649202225May20No
25SRIOtherSdt241,775202225May20Yes
26SRIProductionBroken Bolt Pump A03202225May20No
27SRIProductionBroken Bolt Pump A1,6138202225May20No
28SRIProductionValve problem 0,112202225May20No
29SRIOtherValve problem 0,110202225May20No
30SRIOtherSDT16,71,234202225May20Yes
31SRIMaintenanceBroken Bolt Pump A185202225May20No
32SRIProductionA1234TT03202225May20No
33SRIProductionTurbine failure0,324202225May20No
34SRIProductionStart up after downtime1,191202225May20No
35SRIProductionTurbine failure0,763202225May19No
36SRIOtherNo power1,195202225May19No
37SRIOtherNo power0,978202225May19No
Sheet1
Cell Formulas
RangeFormula
K2:K37K2=IF(COUNTIFS(C:C,'UDT Analysis.xlsx'!#REF!,F:F,'UDT Analysis.xlsx'!#REF!)>3,"Yes",IF(SUMIFS(D:D,C:C,'UDT Analysis.xlsx'!#REF!,F:F,'UDT Analysis.xlsx'!#REF!)>7,"Yes","No"))
 
Upvote 0

Forum statistics

Threads
1,223,664
Messages
6,173,654
Members
452,525
Latest member
DPOLKADOT

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