Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello all,
I've tried to put this in many ways by my own, but i'm still struggling to solve this problem. Sorry by advance if it seems like a beginer question. I hope somebody knows the answer here. I have a measure calculation rule which is :
Solved! Go to Solution.
Thanks lot for your help,
I found the solution it's :
Hi @Anonymous ,
Can you give some more details on your isse.
If possible, can you give a sample data of your tables and an expected result example
Thanks lot for your help,
I found the solution it's :
Maybe try something like this:
Rouge2 =
SUMX (
VALUES ( 'Table2'[C1] ),
CALCULATE (
VAR AA =
QUOTIENT ( SUMX ( 'Table2', 'Table2'[Xp] - 'Table2'[prérequis] ), 12 ) + 1
VAR BB =
IF ( AA >= 5, 5, AA * SUMX ( 'Table2', 'Table2'[Weight] ) )
RETURN
BB,
Codetable2[Couleur] = "R"
)
)
Hi Antriksh Sharma,
Thank you for your reply and the tips for writting in dax.
Unfortunately it's not working because I need in BB var that the 1st condition equal to 5 must be multipied by Table2[Weight] also.
😕
However, here is some data sample
| Xp | Prérequis | Weight | Points(Rouge2) | Competencies | |
| Value 1 | 36 | 12 | 10 | (Q(36-12,12)+1)*10=30 | C1 |
| Value 1 | 72 | 12 | 5 | (Q(72-12,12)+1*5 = 25 | C2 |
| Value 1 | 6 | 12 | 10 | 0 | C3 |
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 18 | |
| 14 | |
| 14 |