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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
asdf1608
Helper V
Helper V

Include LOD in Power BI

I'm struggling to convert the Include LOD in Power BI. I'm not getting the result required.

Tableau Query is

{ INCLUDE [Number (Sheet11)],[Name (Sheet11)],[Organization (Sheet11)],[Distribution (Sheet11)],[Division (Sheet11)]:
COUNTD(IF [Status (Sheet11)] = "Pass"
THEN [Number of Records]
END)}

Number of Records  = 1

The result coming in Tableau is

asdf1608_0-1705927347054.png

 

 

The query I kept in power BI

Calcularion 1 =
CALCULATE(
    COUNTAX(
        VALUES(Sheet1[Number ]),
        IF (
           MAX( Sheet1[Status]) = "Pass",
           SUM(Sheet1[Number of Records])
        )
    ),
    ALLEXCEPT('Sheet1',Sheet1[Number ], Sheet1[ Name], Sheet1[Organization] ,'Sheet1'[Distribution], Sheet1[Division])
)

the result in power BI is 
asdf1608_1-1705927434212.png

 

I am not sure where I'm wrong. But the result in tableau and Power BI are totally different

 

How should we convert Include LOD in Power BI DAX

I have attached my Tableau and Power BI Fie as reference.

Book1 PBI.pbix

Book1.xlsx

Book1.twbx

Help in this is really needed.


Thanks in advance.

1 ACCEPTED SOLUTION
v-jialongy-msft
Community Support
Community Support

Hi @asdf1608 

 

Try the following DAX

Calculation2 = 
CALCULATE(
    DISTINCTCOUNT('Sheet1'[Number ]),
    FILTER(
        ALLEXCEPT(
            'Sheet1',
            'Sheet1'[Number ],
            'Sheet1'[ Name],
            'Sheet1'[Organization],
            'Sheet1'[Distribution],
            'Sheet1'[Division]
        ),
        'Sheet1'[Status] = "Pass"
    )
)

 

This is the result you want 

vjialongymsft_0-1705978518915.png

 

 

 

 

Best Regards,

Jayleny

 

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

View solution in original post

1 REPLY 1
v-jialongy-msft
Community Support
Community Support

Hi @asdf1608 

 

Try the following DAX

Calculation2 = 
CALCULATE(
    DISTINCTCOUNT('Sheet1'[Number ]),
    FILTER(
        ALLEXCEPT(
            'Sheet1',
            'Sheet1'[Number ],
            'Sheet1'[ Name],
            'Sheet1'[Organization],
            'Sheet1'[Distribution],
            'Sheet1'[Division]
        ),
        'Sheet1'[Status] = "Pass"
    )
)

 

This is the result you want 

vjialongymsft_0-1705978518915.png

 

 

 

 

Best Regards,

Jayleny

 

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.