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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
craig811
Helper III
Helper III

Easy DAX formula what am I missing?

Hi all,

 

Sorry this should be a simple formula to show uncosted transactions that are 'Active'

 

Uncosted Transactions =
COUNTROWS(
    FILTER('Cost Element','Cost Element'[Item Status])="Active",
        SUMMARIZE( 'Cost Element', 'Cost Element'[Item Number]),
        CALCULATE( SUM( 'Cost Element'[Unit Cost] ) ) = 0.00000
    )
)
 
I am getting a Synatax error for line:'Cost Element','Cost Element'[Item Status])="Active",
 
What am I doing wrong?
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@craig811 , Try like

Uncosted Transactions =
COUNTROWS(
FILTER('Cost Element','Cost Element'[Item Status])="Active",
&& ( isblank( 'Cost Element'[Unit Cost] ) || 'Cost Element'[Unit Cost] =0.0000)
)

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@craig811 , Try like

Uncosted Transactions =
COUNTROWS(
FILTER('Cost Element','Cost Element'[Item Status])="Active",
&& ( isblank( 'Cost Element'[Unit Cost] ) || 'Cost Element'[Unit Cost] =0.0000)
)

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.