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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
swatisharma_1
Regular Visitor

How to change Tableau LOD Include function to DAX

Hello, I am new to Power BI and stuck with the PBI report developement where Include LOD function shoul dbe incorporated. Below is the existing calculation being created and Tbaleau and need to know how to acheive the same in DAX.

"FLOAT(If [Project] = 'Filled' then {INCLUDE [Project ID],[Work ID]:SUM([Resource Count])} END)"

 

2 REPLIES 2
v-jianboli-msft
Community Support
Community Support

Hi @swatisharma_1 ,

 

 You can use the following DAX expression for a calculated column:

NewColumn =

IF (

    'YourTableName'[Project] = "Filled",

    CALCULATE (

        SUM ( 'YourTableName'[Resource Count] ),

        ALLEXCEPT ( 'YourTableName', 'YourTableName'[Project ID], 'YourTableName'[Work ID] )

    ),

    BLANK ()

)

Replace 'YourTableName' with the actual name of your table in Power BI. This DAX expression checks if the Project column has the value "Filled" and then calculates the sum of the Resource Count column for each unique combination of Project ID and Work ID. If the Project column doesn't have the value "Filled", it returns a blank value.

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello, Thank you for your response.

Getting an error after applying the given condition by you 

"A single value for column "'YourTableName'[Project] = "Filled" in table cannot be determined.

DAX which i have used for Project and Assignment Columns

Project = IF(AND(YourTableName[Status]="APR Lifecycle Ended", YourTableName[Sub Status]="Cancelled"),"Cancelled",YourTableName[Assignment])
Assignment= Its a Group i have created by right-click on one of the elements, scroll to Group, and choosen Group from the context menu.
 
Please suggest.

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors