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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
DARKLOARD
Frequent Visitor

Use a single value to return multiple metric in bar chart?

Hello all!

I have a question, I have a dataste set which looks into sum of Savings Balance for Dec'23 and for Mar'24. 

I have it summed up and displayed like this in bar

DARKLOARD_0-1713455973961.png

Now I need to add a Fixed Deposit metric also that again look into sum for Dec'23 and Mar'24.

I figured that having a filter that I can use to switch between Saving Account and Fixed Deposit metric for two dates would be smart, but I cant seem to form a filter that works.

 

I made a new table called Measure Table with the below column, with these options,

DARKLOARD_1-1713456078267.png

then a new measure, but it doesnt work. I think im missing something but not sure if theres a way to create a filter that shows value for Savings & FD.

 

SA = IF(CONTAINS('Measure Table', 'Measure Table'[Metrics], "CASA"), [DEC'23], [Mar'24])

 

 

If any help that would be great! 

Thank You!

 

 

1 ACCEPTED SOLUTION
DARKLOARD
Frequent Visitor

I was able to update the base file to include identifier for CASA & FD. Hence using these identifier as the filter for the 2 years.

Was able to resolve this issue!

View solution in original post

3 REPLIES 3
DARKLOARD
Frequent Visitor

I was able to update the base file to include identifier for CASA & FD. Hence using these identifier as the filter for the 2 years.

Was able to resolve this issue!

Anonymous
Not applicable

Hi @DARKLOARD ,

Please have a try.

Create a measure.

Dynamic Metric Value = 
VAR SelectedMetric = SELECTEDVALUE('Measure Table'[Metrics], "Default")
RETURN
IF(
    SelectedMetric = "CASA",
    CALCULATE(SUM('DataTable'[SavingsBalance]), 'DataTable'[Date] IN {"Dec'23", "Mar'24"}),
    CALCULATE(SUM('DataTable'[FixedDeposit]), 'DataTable'[Date] IN {"Dec'23", "Mar'24"})
)

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

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

 

 

 

 

Hey thanks for the response, some quetions

  • The field below is something I will have to create I suppose? Combination of 23+24 numbers? 
    (SUM('DataTable'[SavingsBalance])​
  • And i suppose I should have been more clear, these two fields contain the amount per customer for that month year
    'DataTable'[Date] IN {"Dec'23", "Mar'24"})​

 

So Dec'23 & Mar'24 look like this, no date but actual amount

DARKLOARD_0-1713506125573.png

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors