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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
pohan10566
Frequent Visitor

How to combine two ratio to present in a report?

I have a table that have certificated of deposite from the 3 banks. Each bank provides different ratios for each saving amount. 

In the report. I would like to present the bank ratio in range, and at the same time redeem date with just a single ratio.

 

In this case, what dax should I use so the report could have these two kind of ratio at the same time? 

 

pohan10566_0-1625538680352.png

Any hints and tips greatly appreciated

1 ACCEPTED SOLUTION

Hi @pohan10566 ,

 

You can use the HASONEVALUE function to create a measure, refer to the following:

Measure = IF(HASONEVALUE('Table'[Interest]),MAX('Table'[Interest]),MAX('Table'[range]))

vhenrykmstf_0-1626083040857.png

 


Best Regards,
Henry

 

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

3 REPLIES 3
v-henryk-mstf
Community Support
Community Support

Hi @pohan10566 ,

 

According to your needs, create a column through dax, refer to the following:

range =
VAR a =
    CALCULATE ( MIN ( 'Table'[Interest] ), ALLEXCEPT ( 'Table', 'Table'[Bank] ) )
VAR b =
    CALCULATE ( MAX ( 'Table'[Interest] ), ALLEXCEPT ( 'Table', 'Table'[Bank] ) )
RETURN
    a & "-" & b

vhenrykmstf_0-1625714258509.png


Best Regards,
Henry

 

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

Thanks so much for your reply. 

 

Acutally, I would like the report to present the category of the "bank" with the range of rate, and category  "date" with single rate as you drill down using the minus symbol. 

 

ex. the rate of the right side circle replacing the rate of the left side circle. 

pohan10566_0-1625795152972.png

 

Hi @pohan10566 ,

 

You can use the HASONEVALUE function to create a measure, refer to the following:

Measure = IF(HASONEVALUE('Table'[Interest]),MAX('Table'[Interest]),MAX('Table'[range]))

vhenrykmstf_0-1626083040857.png

 


Best Regards,
Henry

 

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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