Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

INVENTORY aCCURACY FOR LAST 14 DAYS

I am attempting to generate an Inventory Accuracy Percentage but is getting a Syntax Error Message.

 

WEEK ACCURACY = CALCULATE(COUNTROWS(Cycle_Count_Accuracy_Report[ADDDATE]Cycle_Count_Accuracy_Report[VARIANCES]="NOVARIANCE"),COUNTROWS(Cycle_Count_Accuracy_Report),0),FILTER('DATE',DATESBETWEEN('DATE'[Date],TODAY(),TODAY()-14)))
 
This the formula i am attempting to use.
4 REPLIES 4
Anonymous
Not applicable

I am attempting to generate an Inventory Accuracy Percentage but is getting a Syntax Error Message.

 

WEEK ACCURACY = CALCULATE(COUNTROWS(Cycle_Count_Accuracy_Report[ADDDATE]Cycle_Count_Accuracy_Report[VARIANCES]="NOVARIANCE"),COUNTROWS(Cycle_Count_Accuracy_Report),0),FILTER('DATE',DATESBETWEEN('DATE'[Date],TODAY(),TODAY()-14)))
 
This the formula i am attempting to use.

Hi @Anonymous ,

 

AFAIK, count rows not contains any optional parameter allow you to add filters. If you wanted to count the filtered table rows, please package then with filter function first.

 

Sample:

WEEK ACCURACY =
CALCULATE (
    COUNTROWS (
        FILTER (
            ALLSELECTED ( Cycle_Count_Accuracy_Report ),
            Cycle_Count_Accuracy_Report[VARIANCES] = "NOVARIANCE"
        )
    ),
    FILTER ( 'DATE', DATESBETWEEN ( 'DATE'[Date], TODAY (), TODAY () - 14 ) )
)

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

It is still not wokring for me

HI @Anonymous ,

 

Please share more details informations to help us clarify your scenario.

How to Get Your Question Answered Quickly

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.