DAX Countrow Filter Userelationship not working together

SarahOrtega

New Member
Joined
Nov 11, 2019
Messages
1
Does anyone know why the DAX below is not working? Do I have it in the wrong order?

BTS Actual = CALCULATE(COUNTROWS('Schedule','Schedule'[Actual Count]),
FILTER('Schedule','Schedule'[WO Type]="BTS")
USERELATIONSHIP('Calendar'[Date],'Schedule'[Actual date performed]))


Power BI just keeps saying syntax error no matter what I try.
 
Last edited by a moderator:

Some videos you may like

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

gazpage

Active Member
Joined
Apr 17, 2015
Messages
393
Well, COUNTROWS only takes a single argument, and you need a comma between your FILTER and USERELATIONSHIP.
 
Last edited:

sadath

Board Regular
Joined
Oct 10, 2004
Messages
244
Hi
in COUNTROWS just put the table name only , like COUNTROWS('Schedule')
 

Watch MrExcel Video

Forum statistics

Threads
1,095,176
Messages
5,442,836
Members
405,201
Latest member
kashyap44

This Week's Hot Topics

  • Copy entire row if CountA <>0 to another sheet
    [B]I want to copy entire row if CountA <>0 for column J7:AM7 (headers on J6:AM6) and so on till the last used cell is column D and paste the...
  • Select last used Row in Table
    I have created a Table in a Worksheet which is locked to prevent user errors and protect formula. Some of the cells require freetext entries which...
  • excel workbook: do not allow certain file name
    Hello all, Don't think this has ever been asked before, but how do I restrict file save [Before_Save Event] if the name of the file being saved...
  • fixing problem autofilter
    hello i need help about my code when i search by code in textbox it doesn't show anything this is my data [ATTACH type="full"...
  • “Weight”
    Hi, i’ve got a long sheet filled with weights such as kg,g,L & ml. i can build a formula to convert kg into g and liter into ml. How ever, my...
  • How to capitalize everything before a certain character?
    In column A, I have some text: Hello good day.mp3 Hello good day.flac etc. I'd like to capitalize everything before the period. I don't need the...
Top