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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
jhlee2611
New Member

USE Tableau LOD expression in PBI

hi, my comapany migration Tableau to PBI.
What I am trying to create is as follows.

there are Call ID, Detail ID & Product

jhlee2611_0-1705159862171.png

The result I desire is as follows.

jhlee2611_3-1705160356079.png

 


but with follow expression, i got anoter result

N Product Call=
        CALCULATE(
            DISTINCTCOUNT('table'[Detail ID]),
            ALLEXCEPT('table','table'[Call ID])
        )

 

jhlee2611_4-1705160376275.png

 


follow is Expession that i used in Tableau
{Fixed [Call ID] : countd[Detail ID]}

How Can i get correct result? please help.

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Power BI does not have a concept of dynamic buckets.  You need to bring your own.

N Product Call = {{1},{2},{3}}

Then you can do a cartesian with your Product Names, and add the measure

 

Detail(#) =
COUNTROWS (
    FILTER (
        ADDCOLUMNS (
            VALUES ( 'Table'[Call ID] ),
            "ct", CALCULATE ( COUNT ( 'Table'[Detail ID] ), REMOVEFILTERS ( 'Table'[Product] ) )
        ),
        [ct] = SELECTEDVALUE ( 'N Product Call'[Value] )
    )
)

 

lbendlin_0-1705183670403.png

See attached

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Power BI does not have a concept of dynamic buckets.  You need to bring your own.

N Product Call = {{1},{2},{3}}

Then you can do a cartesian with your Product Names, and add the measure

 

Detail(#) =
COUNTROWS (
    FILTER (
        ADDCOLUMNS (
            VALUES ( 'Table'[Call ID] ),
            "ct", CALCULATE ( COUNT ( 'Table'[Detail ID] ), REMOVEFILTERS ( 'Table'[Product] ) )
        ),
        [ct] = SELECTEDVALUE ( 'N Product Call'[Value] )
    )
)

 

lbendlin_0-1705183670403.png

See attached

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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