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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ssvr
Helper III
Helper III

Need Help on DAX

Hi All,

 

I want to migrate a project from Excel - Power BI.

 

I need to write a DAX based on Excel formul. Please help me out

 

Formula is in A9 Cell

 

=IF([@[Case No]]=A10,"",+IF(OR([@Status]="Board Review",[@Status]="Approved",[@Status]="Rejected",[@Status]="In Pilot"),[@[Received Date]],""))

3 ACCEPTED SOLUTIONS
v-frfei-msft
Community Support
Community Support

Hi @ssvr,

 

I made an sample for your reference. Here I created a calculated column using the formula.

 

Column =
IF (
    [Case No] = "A10",
    "",
    IF (
        [Status] = "Board Review"
            || [Status] = "Approved"
            || [Status] = "Rejected"
            || [Status] = "In Pilot",
        "" & Table1[Received Date],
        ""
    )
)

Capture.PNG

 

For more details, please check the pbix as attached.

 

https://www.dropbox.com/s/5bpc08p47rswabx/Need%20Help%20on%20DAX.pbix?dl=0

 

Regards,

Frank

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

Hi @ssvr,

 

I create two measures as below.

 

Count of project = COUNT(Table1[ProjectNumber])
Measure 2 = SUMX(ALLEXCEPT(Table1,Table1[Resouceinitials]),[Count of project])

212.PNG

For more details, please check the pbix as attached.

 

https://www.dropbox.com/s/4t5pkbq5cgfdici/DAX.pbix?dl=0

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

Hi @ssvr

 

Try to update the formula to this one.

 

Count of project = COUNTA(Table1[ProjectNumber])

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

8 REPLIES 8
v-frfei-msft
Community Support
Community Support

Hi @ssvr,

 

I made an sample for your reference. Here I created a calculated column using the formula.

 

Column =
IF (
    [Case No] = "A10",
    "",
    IF (
        [Status] = "Board Review"
            || [Status] = "Approved"
            || [Status] = "Rejected"
            || [Status] = "In Pilot",
        "" & Table1[Received Date],
        ""
    )
)

Capture.PNG

 

For more details, please check the pbix as attached.

 

https://www.dropbox.com/s/5bpc08p47rswabx/Need%20Help%20on%20DAX.pbix?dl=0

 

Regards,

Frank

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @v-frfei-msft ,

 

Thanks for your reply on DAX

 

I need one more help from you

 

Required a DAX of Sum of ProjectNumber Count

 

CNDOL --- 2

 

Capture.JPG

Hi @ssvr,

 

Sample for your reference.

 

Measure = CALCULATE(COUNT(Table1[ProjectNumber]),ALLEXCEPT(Table1,Table1[Resouceinitials]))

 

123.PNG

 

For more details, please check the pbix as attached. If it doesn't meet your requirement, kindly share your sample data and excepted result to me.

 

https://www.dropbox.com/s/4t5pkbq5cgfdici/DAX.pbix?dl=0

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Capture.JPGI need the Sum of Project Count By ResourceInitials wise ( DAX for Measure not Column) because i work on Cubes

Hi @ssvr,

 

I create two measures as below.

 

Count of project = COUNT(Table1[ProjectNumber])
Measure 2 = SUMX(ALLEXCEPT(Table1,Table1[Resouceinitials]),[Count of project])

212.PNG

For more details, please check the pbix as attached.

 

https://www.dropbox.com/s/4t5pkbq5cgfdici/DAX.pbix?dl=0

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

I got this error Capture.JPG

Hi @ssvr

 

Try to update the formula to this one.

 

Count of project = COUNTA(Table1[ProjectNumber])

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @ssvr,

 

Does that make sense? If so, kindly mark my answer as a solution to close the case.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors