Forum Discussion

khush19's avatar
khush19
Resolver I
6 years ago
Solved

Multi Language in PUSH dataset

I have a real time Hybrid dataset,When i open that dataset in POWERBI desktop , Most of the options(Enterdata,Getdata,New parameters..) are disabled because of Real Time dataset. I want to implement...
  • khush19's avatar
    khush19
    6 years ago

    Hi Yingjie,

     

    Thanks for your time,below is the scenario:

     

    I have a real time Hybrid dataset,When i open that dataset in POWERBI desktop , Most of the options(Enterdata,Getdata,New parameters..) are disabled because of Real Time dataset.As below you can see even i cnt edit query or do modelling

     
     

     

     

    So for example ,

    Malaysia is our Customer and  at admin portal they can select  in which language they want to see financial data (english,Chinese or Malay).

    i can think of 2 option for this ,which i tried:

    1: create 3 powers bi reports with 1 data set ,one in english,then in Chinese and one in Malay 

    Disadvantage :if we have more customers with multi language ,need to create multiple report

     

    2: pass 3 rows in push dataset with different language code,and in query filter url pass the required language code. And in report write DAX to switch based on filter

     

    so in URL will pass :

    &filter=RealTimeDataset/Language eq 'en-us'

    and inside my report will create a measure:

    Payment =

     

    SWITCH (
        TRUE (),DatasetName[Language]="En-US" then "Payment",
    DatasetName[Language]="zh-CH" then "付款")
    below is the way data will be stored in POwerBI dataset


    Disadvange: Push has limit of 200K and and it will have multiple customer data ,i dnt want to fill the limit with unwanted data. 

     

    so if the user want data to be shown in chinese ,it should dispaly :

     

    and if user select english ,then it should display english.

     

    Thanks