Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

X Axis Challenge

Good Afternoon,

 

I have a dataset that includes various organizations, that each deal in various currencies. Furthermore, there are two different amount types for each currency; a direct amount, and a counter amount. 

 

I'd like to plot the currencies on the X-axis and the two amount types on the Y-axis. From there, I would like to drill down into the organizational level data i.e. depicting which organizations are making up how much of the EUR direct and counter amounts, for example. 

 

Here is an example dataset: 

Org.Exposure CcyDirectFunctional CcyCounter
ACAD25USD-20
ADKK2USD-0.2
AEUR67USD-76
ATRY93USD-6
BCAD-4USD3
BDKK-5USD1
BEUR-16USD18
BTRY-0.5USD0
CCAD0EUR0
CDKK20EUR-3
CTRY-0.5EUR0
CUSD-377EUR340
DCAD0DKK0
DEUR3DKK-24
DTRY128DKK-59
DUSD1DKK-6

 

Here is an idea of where I am trying to go (Note: this chart is lacking the ability to drill down into the organizational level data):

I'm really looking forwar to your response.

 

Thank you very much!!

 

Jack

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Anonymous

     

    What is the expected result?

    Will you consider to create new table then create the visual like below?

    Table 2 = 
    var a = SELECTCOLUMNS('Table',"Org.",'Table'[Org.],"Ccy",'Table'[Exposure Ccy],"Amount",'Table'[Direct],"Ccy type","Exposure","Amount type","Direct")
    var b = SELECTCOLUMNS('Table',"Org.",'Table'[Org.],"Ccy",'Table'[Functional Ccy],"Amount",'Table'[Counter],"Ccy type","Functional","Amount type","Counter")
    Return
    UNION(a,b)

     

    Best Regards,

    Jay

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous

     

    What is the expected result?

    Will you consider to create new table then create the visual like below?

    Table 2 = 
    var a = SELECTCOLUMNS('Table',"Org.",'Table'[Org.],"Ccy",'Table'[Exposure Ccy],"Amount",'Table'[Direct],"Ccy type","Exposure","Amount type","Direct")
    var b = SELECTCOLUMNS('Table',"Org.",'Table'[Org.],"Ccy",'Table'[Functional Ccy],"Amount",'Table'[Counter],"Ccy type","Functional","Amount type","Counter")
    Return
    UNION(a,b)

     

    Best Regards,

    Jay