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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
SarWal
Microsoft Employee
Microsoft Employee

How to compare values from another table? Segmentation in Dax

Hello - PBI Newbie here -

 

I am trying to segment accounts based on revenue. I have a table with Account information, Financial information and Segmentation requirements.

 

Account Columns:

[Account_Id] [Account Name] etc

Financial Columns

[Account_Id] [Revenue] etc

 

Segmentation Columns:

[Segmentation Name] [Max Revenue] [Min Revenue]

 

What is the best approach to solve this?

I want a table/chart with the Account Name, Revenue, and Segmentaion Name, or to be able to filter a page based off the segmentation. I am struggling with the format of the column I'm adding to the Financial table in order to calculate what segment each account is in. NOTE there is only one line item for each account in the financials table.

 

Thanks in advance for your help!

 

 

Note - I've been looking at this page and trying to convert it to columns (rather than measures), and not having any luck.

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft Employee
Microsoft Employee

@SarWal

 

You can try to add a calculated column as below.

Segmentation Name = 
CALCULATE (
    VALUES ( Segmentation[Segmentation Name] ),
    FILTER (
        Segmentation,
        Segmentation[Min Revenue] <= Financial[Revenue]
            && Segmentation[Max Revenue] >= Financial[Revenue]
    )
)

Capture.PNG

 

Capture.PNG

View solution in original post

1 REPLY 1
Eric_Zhang
Microsoft Employee
Microsoft Employee

@SarWal

 

You can try to add a calculated column as below.

Segmentation Name = 
CALCULATE (
    VALUES ( Segmentation[Segmentation Name] ),
    FILTER (
        Segmentation,
        Segmentation[Min Revenue] <= Financial[Revenue]
            && Segmentation[Max Revenue] >= Financial[Revenue]
    )
)

Capture.PNG

 

Capture.PNG

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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