Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Calculation

Hi Team,   I have some data shown below.   Month Folio starts Folio ends Product Code Disposal Working capacity Tank ratio Feb 20220201 20220229 X T-001 2,275,000 3,288,103 0....
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi  Anonymous ,

    I created a sample pbix file(see attachment) for you, please check whether that is what you want. You can create a measure as below:

    Ratio = 
    VAR _selmonth =
        SELECTEDVALUE ( 'Table'[Month] )
    VAR _disposal =
        CALCULATE ( SUM ( 'Table'[Disposal] ), ALLSELECTED ( 'Table'[Month] ) )
    VAR _wc =
        CALCULATE ( SUM ( 'Table'[Working capacity] ), ALLSELECTED ( 'Table'[Month] ) )
    RETURN
        DIVIDE ( _disposal, _wc )

    If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

    How to upload PBI in Community

    Best Regards