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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
rajasekar_o
Helper III
Helper III

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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