Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
https://1drv.ms/u/s!AoqtZHsX4Bzvg_gO4DA7tR5F5XABhw?e=GEeEAy
Hi
I have made a calculated column a table (Balance) in order to recover a information from another table in my bi report, it work great ...
catégorie PCG =
Var Compte_Pcg ='Balance'[Compte]
Var fouchette_correspondante =FILTER(fourchettes, Compte_Pcg>=fourchettes[Début] && Compte_Pcg <= fourchettes[Fin])
return
CALCULATE(SELECTEDVALUE(fourchettes[Catégorie]),fouchette_correspondante)
but at the end the user wanted it only in Excel, so I try to transform it but selectedvalues is missing
I have made a lot of try with for example with IF ( HASONEVALUE ( Table[column] ), VALUES ( Table[column] ) ), but it always ended with error
There is something that i does missandertand i think
I put in attached file the pbix (cc.pbix) and the Excel file (cc.xlsb)
Thanks a lot for helping
Solved! Go to Solution.
@nicolast29 , You need to some expression to return one value there like max , try
catégorie PCG =
Var Compte_Pcg ='Balance'[Compte]
Var fouchette_correspondante =FILTER(fourchettes, Compte_Pcg>=fourchettes[Début] && Compte_Pcg <= fourchettes[Fin])
return
CALCULATE(max(fourchettes[Catégorie]),fouchette_correspondante)
@nicolast29 , You need to some expression to return one value there like max , try
catégorie PCG =
Var Compte_Pcg ='Balance'[Compte]
Var fouchette_correspondante =FILTER(fourchettes, Compte_Pcg>=fourchettes[Début] && Compte_Pcg <= fourchettes[Fin])
return
CALCULATE(max(fourchettes[Catégorie]),fouchette_correspondante)
thanks a lot
It works
If i understant, whitout the max it return a table who is a problem, but with the max it return a single value and that it ?
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |