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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
rajasekar_o
Helper IV
Helper IV

FIXED SALES AMOUNT

hi team,
how to calculate fixed sales amount for finished goods  ,i have sale table and item group table 
IF am apply any filter the fixed sales amount no need chnage 

rajasekar_o_0-1702635518542.png

rajasekar_o_2-1702636166614.png

 

 

 

1 ACCEPTED SOLUTION
v-yifanw-msft
Community Support
Community Support

Hi @rajasekar_o ,

Based on your description, I understand that you want the value of total to remain unchanged when the slicer is finished goods.

You can follow these steps to solve your problem:

1.Create a measure

vyifanwmsft_0-1702864922107.png

Measure =
CALCULATE (
    SUM ( 'sale table'[sales amount] ),
    FILTER (
        ALL ( 'sale table' ),
        'sale table'[group] = SELECTEDVALUE ( 'sale table'[group] )
    )
)

Output:

vyifanwmsft_1-1702864970285.png

 

vyifanwmsft_2-1702864970286.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Yifan Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yifanw-msft
Community Support
Community Support

Hi @rajasekar_o ,

Based on your description, I understand that you want the value of total to remain unchanged when the slicer is finished goods.

You can follow these steps to solve your problem:

1.Create a measure

vyifanwmsft_0-1702864922107.png

Measure =
CALCULATE (
    SUM ( 'sale table'[sales amount] ),
    FILTER (
        ALL ( 'sale table' ),
        'sale table'[group] = SELECTEDVALUE ( 'sale table'[group] )
    )
)

Output:

vyifanwmsft_1-1702864970285.png

 

vyifanwmsft_2-1702864970286.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Yifan Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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