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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
jasgun
Frequent Visitor

Arrange Data

Hi all,

 

 

I have the below setup.

What I'm trying to get to is if the user selects "QTREND" from the rate type slicer,

I would like a new measure "AMT-GBP" to calculate the "AMT" converted to GBP

So for example if "QTREND" is selected the AMT-GBP for the 1st row would be 300/1.71 = 175.44

                         if "SBF"         is selected the AMT-GBP for the 1st row would be 300/1.96 = 153.06

 

The problem I have is I cannot create a relationship as the CCY is not unique.

Do I need to rearrange the way the data is layed out? However there is potential for more "RateType" to be added.

 

Capture.PNG

 

Thanks

 

Jason

1 ACCEPTED SOLUTION
v-haibl-msft
Microsoft Employee
Microsoft Employee

@jasgun

 

We can use LOOKUPVALUE Function (DAX) to lookup the corresponding RoE in another table with no relationship.

 

AMT-GBP = 
VAR SelectedRate =
    IF ( HASONEVALUE ( RoE[Rate Type] ), VALUES ( RoE[Rate Type] ) )
VAR CurrentCCY =
    CALCULATE ( LASTNONBLANK ( Policy[CCY], Policy[CCY] ) )
RETURN
    CALCULATE (
        SUM ( Policy[AMT] )
            / LOOKUPVALUE ( RoE[RoE], RoE[Rate Type], SelectedRate, RoE[CCY], CurrentCCY )
    )

Arrange Data_1.jpg

 

Best Regards,

Herbert

View solution in original post

3 REPLIES 3
v-haibl-msft
Microsoft Employee
Microsoft Employee

@jasgun

 

We can use LOOKUPVALUE Function (DAX) to lookup the corresponding RoE in another table with no relationship.

 

AMT-GBP = 
VAR SelectedRate =
    IF ( HASONEVALUE ( RoE[Rate Type] ), VALUES ( RoE[Rate Type] ) )
VAR CurrentCCY =
    CALCULATE ( LASTNONBLANK ( Policy[CCY], Policy[CCY] ) )
RETURN
    CALCULATE (
        SUM ( Policy[AMT] )
            / LOOKUPVALUE ( RoE[RoE], RoE[Rate Type], SelectedRate, RoE[CCY], CurrentCCY )
    )

Arrange Data_1.jpg

 

Best Regards,

Herbert

Perfect, thanks again Herbert!

BhaveshPatel
Super User
Super User

You should look into the concept of disconnected tables to make it work the way you like.

 

More information can be found on this VIDEO.

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.