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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
KevinSV
Helper II
Helper II

Multiplying values with a certain filter value

Hello, 
I try to multiply 2 values between them but i have no results.
First of all, i have a table which had a column called Credits (in decimal number format) ; I create a table which called coeff and putting into this table a column Percentage and had only the 0,33,99 and 100 values (in percentage values).
I related this 2 tables with a column I created : Fictive = 1 (for the 2 tables) 
I try to multiply the credits with the percentage which i made a slicer and where i can choose the percentage I need (for example, I filter with 33% with the slicer and want all ligns of credits multiply by 33%). The problem is that i have the same result as the origin credit (like 100% of the credit) 

KevinSV_0-1729693973208.png

So with the formula take the 1 and didn't take my selectedvalue where i filter with a slicer : 

KevinSV_1-1729694025800.png

Have you an idea ? I think thh relation is the problem but I have no idea ho to resolve this problem.
Thanks you for your helping ! 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @KevinSV ,

It seems that [CreditsCoeff] is a calculated column, so it will not change according to the user interaction(slicer, filter, column selections etc.) in the report as the value of a calculated column is computed during data refresh and uses the current row as a context... Please review the following links about the difference of calculated column and measure...

Calculated Columns and Measures in DAX

Calculated Columns vs Measures

 

Please create a measure as below to replace the original calculated column.

Measure_CreditsCoeff =
VAR coeffselect =
    SELECTEDVALUE ( Coefficient[Pourcentage], 1 )
RETURN
    MAX ( Coefficient[CREDITS] ) * coeffselect

Best Regards

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @KevinSV ,

It seems that [CreditsCoeff] is a calculated column, so it will not change according to the user interaction(slicer, filter, column selections etc.) in the report as the value of a calculated column is computed during data refresh and uses the current row as a context... Please review the following links about the difference of calculated column and measure...

Calculated Columns and Measures in DAX

Calculated Columns vs Measures

 

Please create a measure as below to replace the original calculated column.

Measure_CreditsCoeff =
VAR coeffselect =
    SELECTEDVALUE ( Coefficient[Pourcentage], 1 )
RETURN
    MAX ( Coefficient[CREDITS] ) * coeffselect

Best Regards

Thank you very much, It works ! 

MNedix
Solution Sage
Solution Sage

Heya,

The issue may also come from formatting. If you put in a card only the below, what do you get?

CreditsCoeff = SELECTEDVALUE(Coefficient[Pourcentage];1)


If the post helped then please give it a Kudos and mark it as the solution so others can see it.
Cheers,

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.