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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
ovonel
Post Prodigy
Post Prodigy

Display current segmentation instead of the historical?

I currently have a visual where I display segment associated with revenue.

 

I want to override it and display current segment. The only way to achieve it is if I go like this from    revenue -> customer -> customer segmentation.   In sql it would be:

 

select dcs.Segment

from FactRevenue fr

join DimCustomer_Current dc on fr.Key_Customer = dc.Key_Customer

join DimCustomerSegmentation_Current dcs on dc.CustomerNo = dcs.CustomerNo

 

What is the best way to achieve this?

 

Shall I create a relationship in the model for customer and customer segmentation and then do a calculated column??

 

Or

 

Is using dax the best solution for this?

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi, @ovonel ;

Is the above answer helpful to you? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yalanwu-msft
Community Support
Community Support

Hi, @ovonel ;

You could create a new table by dax . According to information your  provided ,  please try:

NewTable =
SUMMARIZE (
    FILTER (
        'FactRevenue fr',
        [Key_Customer]  IN 
        SUMMARIZE (FILTER (
                    'DimCustomer_Current',
                    [CustomerNo] IN VALUES ( 'DimCustomerSegmentation_Current'[CustomerNo] )),[Key_Customer])),
    [Key_Customer])

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.