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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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