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
CasperSV
Helper II
Helper II

Revenue score between two parameters from another table

Hi guys,

 

I am trying to add a score (from parameters in another table) based on the expected year revenue.

Current result in Matrix:

CasperSV_0-1700132186097.png

 

Expected result:

CasperSV_0-1700132643574.png

 

 

Dataset,

Table Parameters Revenue score:

CasperSV_1-1700132247725.png

 

 

Table Revenue:

CasperSV_2-1700132325931.png

 

 

Do you guys have any idea how to achieve this?

 

Thank you in advance,

 

Best regards,

Casper

1 ACCEPTED SOLUTION

Hi,

Write this calculated column formula in the Revenue table

Score = CALCULATE(MAX('Score parameters'[Score]),FILTER('Score parameters','Score parameters'[Item category]=EARLIER(Revenue[Item category])&&'Score parameters'[Revenue min]<=Revenue[Expected year revenue]&&'Score parameters'[Revenue max]>=Revenue[Expected year revenue]))

Write this measure and drag it to the visual

S = MAX(Revenue[Score])

Hope this helps.

Ashish_Mathur_0-1700610847085.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

8 REPLIES 8
CasperSV
Helper II
Helper II

Hi @Ashish_Mathur and @lbendlin ,

 

Thank you for the reply, hereby the link to the report:

https://smartval-my.sharepoint.com/:u:/g/personal/casper_smart-value_nl/ER4QZVL-ufVBgRQGzkQXo4wBX0s1...

 

Expected result:

CustomerItem categoryExpected year revenueScore
AlexTotal2.342,86 
 Chair

457,14

A
 Plate685,71Z
 Spoon628,57A
 Table571,43Z
MikeTotal3.085,71 
 Chair800,00A
 Plate857,14Z
 Spoon514,29Z
 Table914,29A

 

Thank you for the help.

 

Best regards,

Casper

Hi,

Write this calculated column formula in the Revenue table

Score = CALCULATE(MAX('Score parameters'[Score]),FILTER('Score parameters','Score parameters'[Item category]=EARLIER(Revenue[Item category])&&'Score parameters'[Revenue min]<=Revenue[Expected year revenue]&&'Score parameters'[Revenue max]>=Revenue[Expected year revenue]))

Write this measure and drag it to the visual

S = MAX(Revenue[Score])

Hope this helps.

Ashish_Mathur_0-1700610847085.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur Thank you so much!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

Do you want a calculated column or a measure solution?  Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur 

 

I don't think it matters, I'm only going to use it in the Matrix visual. 

 

Best regards,

Casper

Hi @CasperSV 

 

Would this work as a measure?

Score = 
VAR _Cat = SELECTEDVALUE( 'Revenue'[Item category] )
VAR _Rev = SELECTEDVALUE( 'Revenue'[Expected year revenue] )
VAR _Score =
    CALCULATE(
        MAX( 'Score parameters'[Score] ),
        FILTER(
            'Score parameters',
            'Score parameters'[Item category] = _Cat
                && 'Score parameters'[Revenue min] <= _Rev
                && 'Score parameters'[Revenue max] >= _Rev
        )
    )
RETURN
    _Score


Proud to be a Super User!

daxformatter.com makes life EASIER!
lbendlin
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors