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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.