Forum Discussion

rajasekaro's avatar
rajasekaro
Icon for Helper III rankHelper III
7 months ago
Solved

Show only selected Company value

Hi Team, if i select INR need to show only need to show 00030 if i select usd need to show other.  
  • v-hashadapu's avatar
    v-hashadapu
    7 months ago

    Hi rajasekaro , Thank you for reaching out to the Microsoft Community Forum.

     

    Please try:
    Currency Rule :=

    VAR curr =

    SELECTEDVALUE ( 'Currency selection'[Currency] )

    VAR comp =

    SELECTEDVALUE ( 'COMPANYMASTER'[COMPANYMASTERID] )

    RETURN

    SWITCH (

    TRUE(),

    curr = "INR" && comp = "00030", [Final Amount],

    curr = "USD" && comp <> "00030", [Final Amount],

    BLANK()

    )

    If it didn’t give expected output, please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot). Include all the necessary details, detailing your scenario and issue as clearly and fully as possible. 


    Do not include sensitive information. Do not include anything that is unrelated to the issue or question. Please show the expected outcome based on the sample data you provided.

    Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...