Add measures in bulk to your Power BI file without external tools

Поділитися
Вставка
  • Опубліковано 2 гру 2024

КОМЕНТАРІ • 100

  • @Blitzman82492
    @Blitzman82492 8 місяців тому +2

    Thanks so much for this - saved me a lot of time. I was able to move the measures in DataModelSchema file into a single line in Notepad++ -- then I copied it into excel and was able to copy it into 100+ rows and do some magic to fill in my criteria for each. Then copied back into the file and woola! Awesome trick. One note is I had to change the "lineageTag" for each measure or else I couldn't open the pbit file. This was easily accomplished by just changing the last 3 digits of the Tag on each measure and counted up in excel.

  • @philhenville
    @philhenville 10 місяців тому

    This is an incredible hack, I'm so happy that it actually worked (Jan 2024)! I had over 100 measures that I was able to copy'n'paste from the schema file. Thanks for the tip!

  • @JoshBelzman
    @JoshBelzman 2 роки тому +1

    Very cool tip. I got lost when you wre ecutting and pasting the measure in notepad. Can you explain again what you were doing theer? Did you replace the measures with ones referncing the new table? And what was it we're to do with annotations? thanks!

  • @pravinupadhyay2046
    @pravinupadhyay2046 4 роки тому +5

    Nice trick Ruth, not few people but there are a lot of people in big organization where external tools are not allowed or need many approvals.

    • @CurbalEN
      @CurbalEN  4 роки тому

      Then this trick is perfect!

  • @junkjunky7077
    @junkjunky7077 3 роки тому

    OMG!!!! I LOVE YOU!!!!!! You have made our lives soooo much easier!
    Did I say I love you?

  • @ph3ll3r
    @ph3ll3r 4 роки тому +2

    This was awesome. I would like to make a suggest to get the JStool for Notepad++ which might make it easier to traverse the model using the JSON viewer.

    • @CurbalEN
      @CurbalEN  4 роки тому

      Thanks for the tip :)

  • @amsalghur9109
    @amsalghur9109 Рік тому

    Hello, I am new to the power bi desktop. I have been working on making dashboard on power bi. I struggle a lot I didn't know how we can copy paste the measure file. Now I know how we can copy/paste the measuring files from watching your videos.

  • @lso4jw251
    @lso4jw251 Рік тому +1

    What if I just want to add in the measure to a different report? Can I pick and choose?

  • @Phoenixspin
    @Phoenixspin 4 роки тому +2

    "Come on baby!" - I like it when Ruth encourages her file to perform.

    • @CurbalEN
      @CurbalEN  4 роки тому

      That is how we improve our connections isn't it? 😂😂

    • @wisid
      @wisid 4 роки тому

      Pretty cool for bulk measure creation. Nice work

    • @CurbalEN
      @CurbalEN  4 роки тому +1

      😂😂 that needs to be added to performance best practice!!

  • @mikem5834
    @mikem5834 2 роки тому

    Thank you for an very interesting and useful video, but I have a question: does it possible to insert a measures value in to the cells of the loaded table instead an existing values in these table?

  • @kp7440
    @kp7440 2 роки тому +1

    Thanks for this - we've successfully used this approach to create new bulk measures in the past but can now see that measures expect a 'lineageTag' in the schema. We've tried using null against it but with no luck - we get a 'cannot deserialize database' error when we open the edited pbit file. Wondered if you had resolved any such issue.

    • @dsnook01
      @dsnook01 Рік тому

      same problem here. did you ever work it out?

  • @pallavi_joseph
    @pallavi_joseph Рік тому

    you are a gem

  • @kathir3187
    @kathir3187 2 роки тому +1

    You saved me. Thanks a lot 😊

    • @CurbalEN
      @CurbalEN  2 роки тому

      At your service :)

  • @FernandoAlvarado-j4v
    @FernandoAlvarado-j4v 9 місяців тому

    Can we change columns dax?

  • @tagGirls-qs8kn
    @tagGirls-qs8kn 6 місяців тому

    Thanks for such a Marvelous Trick

  • @gunjack38
    @gunjack38 3 роки тому

    Thank you so much for the tip. It helped to create more than 300 measures without using external tools :)

  • @abhianvitutorials353
    @abhianvitutorials353 Рік тому

    Could you please make a video on how to copy measures in bulk from one pbix file to another pbix file?

  • @JWM-i5r
    @JWM-i5r 4 місяці тому

    Why do you save it as a pbit file instead of a pbix file? And can this be done with pbix files?

  • @IlariaLongoDorni
    @IlariaLongoDorni 4 роки тому +1

    PERFECT* thanks Ruth

  • @pianoquatrevingtquinze9220
    @pianoquatrevingtquinze9220 3 роки тому

    Thank you for this video. Using it, i have built a method to switch a dataset from Import mode to directQuery mode.
    I will send it to you, it is very simple.

  • @EfratDror
    @EfratDror 2 роки тому

    Thank you for the very helpful video! Question, In case some measures are used in visuals, is there also a method to replace all the old measures in a visual with the new ones in bulk?

    • @CurbalEN
      @CurbalEN  2 роки тому

      Name them the same and it will work :)

    • @EfratDror
      @EfratDror 2 роки тому

      ​@@CurbalEN I see, the names are the same as they were, but the visual does not show data, instead there's the error "This field can't be used since it is invalid". And so I have to manually replace the field in the visual to the new one. What am I missing? :) Thank you very much!

    • @CurbalEN
      @CurbalEN  2 роки тому

      Maybe the data type is wrong?

  • @suryasahoo3771
    @suryasahoo3771 4 роки тому

    Thanks Ruth for sharing your ideas

    • @CurbalEN
      @CurbalEN  4 роки тому +1

      Always my pleasure :)

  • @yeravellisanthosh9296
    @yeravellisanthosh9296 3 роки тому

    If we change the measures from one table name to new table name then the table names in the measures changes ?

  •  4 роки тому +1

    Interesante, ¡Gracias Ruth!

  • @chakrabmonoj
    @chakrabmonoj 2 роки тому

    This again is a lovely hack Curbal. I have two questions though (apologies for being a little thick here as I am starting out on DAX) :
    1. Will the same method work in case of calculated columns and the reason I am asking this question is below in the 2nd one :
    2. I just cleaned up a dataset and then the next one comes in with a completely different structure and column headers :
    a. will I need to clean up every new data set manually as they keep coming?
    b. Is it possible to force the new columns to conform to the existing column structure and names as in the cleaned up query which can serve as a template for all new ones
    c. Can the calculated columns on the existing query be copied and re-used on all the new in-coming queries?
    Thanks and sorry for having taken too much space here

  • @jhonrierabaya9072
    @jhonrierabaya9072 2 роки тому

    Hi Ruth, can this be done copying the dataschema to another pbix file?

    • @CurbalEN
      @CurbalEN  2 роки тому

      Probably?

    • @kedarkunte3039
      @kedarkunte3039 Рік тому

      @@CurbalEN Yes I achieved it. It also worked for copying measures from one PBIX file to another. Only thing you need to do is make sure measures have correct table names. You can do that using Notepad++ with Find and Replace. Also make sure to rename Untitled PBIX file to something useful name.

    • @CurbalEN
      @CurbalEN  Рік тому +1

      Well done 👏

  • @waterfrontgetaway1402
    @waterfrontgetaway1402 3 роки тому

    Thanks, this looked very promising, but it did not work when trying to copy measures between files, I suspect that there is underlying code which needs to also be changed. In any case, thanks for a way to get at the underlying code, I suspect this will help in the long run.

    • @Nobody-lw3wl
      @Nobody-lw3wl 2 роки тому

      hi, I want to ask that have you found the solution to this problem? I now have encountered this, and it’s really hard to deal with without that external tool (it’s hard to get permission to install it on my working computer because of company policy issues) I am looking forward to your reply!

  • @Jey_Jey_604
    @Jey_Jey_604 3 роки тому

    Just I wanna mention that this solution is NOT working for Direct query connection. I've tried Imported conn and it's working. Thank you

  • @gondebas
    @gondebas 3 роки тому

    Hi, greetings, how about bulk copy of calculated columns? Is it also possible this way?

    • @CurbalEN
      @CurbalEN  3 роки тому

      Nope :(

    • @gondebas
      @gondebas 3 роки тому

      @@CurbalEN Do you have any other idea how we may bulk copy calculated columns between two pbix files? The external tool that is supposed to do automate this task - ALM Toolkit - does not see calculated columns.

    • @CurbalEN
      @CurbalEN  3 роки тому

      Maybe tabular editor?

  • @Golden-Horse
    @Golden-Horse 4 роки тому

    We are planning to have two separate premium capacity nodes in our project, one for Dev and Testing and another is for production,
    Can you please let me know what impact this may have on deployment pipeline ? Can we configure a pipeline to talk to two different nodes?

    • @CurbalEN
      @CurbalEN  4 роки тому

      I dont know, Try asking in the power bi community!

  • @PedroCabraldaCamara
    @PedroCabraldaCamara 3 роки тому

    Excelent Ruth!

  • @abhishekstatus_7
    @abhishekstatus_7 4 роки тому

    YAAAAAAAAAAAAAYYY !! ME FIRST :) ONE QUICK QUESTION : What is the best way to import data of five years when we have 123 columns and more then 30Mil rows . I am writing SQL query by Import method in Power BI and bringing the data but for one fiscal year the PBI file size has become 225 MB which is really heavy and customers wants to see the last five years financial information with comparison !! Thanks again for sharing this Ruth !

    • @CurbalEN
      @CurbalEN  4 роки тому +1

      Yey!!🥳🥳

    • @abhishekstatus_7
      @abhishekstatus_7 4 роки тому

      @@CurbalEN Need your suggestions Ruth! Please advice me!

    • @CurbalEN
      @CurbalEN  4 роки тому +1

      Talk to them about number of columns and granularity, that should set you on track ;)

    • @abhishekstatus_7
      @abhishekstatus_7 4 роки тому

      @@CurbalEN Yeah , Scratching my mind and also the major challenge is we don't have dates in the database and they want to see MTD and YTD as well..

    • @CurbalEN
      @CurbalEN  4 роки тому

      Also look into aggregated tables, it should help, but if you dont have dates....

  • @Golden-Horse
    @Golden-Horse 4 роки тому

    Hi Ruth, Ca you please make a video on "CI/CD pipeline in GitLab that talks to Power BI Service and updates the ‘Development’ workspace of the project" (GitLab CI/CD integration with Power Bi deployment pipeline)

    • @CurbalEN
      @CurbalEN  4 роки тому +1

      Mmmm wouldn't know where to start, have you asked guy in a cube guys?

    • @Golden-Horse
      @Golden-Horse 4 роки тому

      @@CurbalEN No.

    • @CurbalEN
      @CurbalEN  4 роки тому

      Try to see if they can assist on that!

  • @DaisySara
    @DaisySara Рік тому +1

    I get an error, the JSON input is not properly formed

  • @awadelrahman
    @awadelrahman Рік тому

    This is crazily nice!!! :D :D

  • @obimad
    @obimad 4 роки тому

    Realy great! Thank you

  • @elrevesyelderecho
    @elrevesyelderecho 4 роки тому

    3:10 Nice trick!!!!

  • @nagarjungb2381
    @nagarjungb2381 3 роки тому

    This is what I was looking for. However, when i open data model file in notepad++, it is unreadable format. Does anyone know how to fix it?

  • @alexninorueda
    @alexninorueda 4 роки тому

    Hi Ruth, what software do you use to record and edit your videos?

  • @GuodongLiu-xt3tk
    @GuodongLiu-xt3tk Місяць тому

    Does anyone have a similar solution for powerbi Fabric

  • @SumerSingh-c2l
    @SumerSingh-c2l 2 місяці тому

    Well this was a nice trick, but this is same as changing the home table of all the measures, which can be done with the pbix file with in 2-5 secs.

  • @elrevesyelderecho
    @elrevesyelderecho 4 роки тому +1

    4:08 PBI must have a right-click "duplicate measure" option.

    • @CurbalEN
      @CurbalEN  4 роки тому +1

      I knowwww 😭😭😭

    • @piesogrodnika572
      @piesogrodnika572 4 роки тому

      Tabular Editor has it...

    • @CurbalEN
      @CurbalEN  4 роки тому

      Yes, but not everybody can install it.

  • @profBorges10
    @profBorges10 4 роки тому

    Muito bom parabéns.

  • @rajeshpoluru8120
    @rajeshpoluru8120 4 роки тому

    One question about this.. in which scenario we can do this ??

    • @CurbalEN
      @CurbalEN  4 роки тому

      Anywhere you need to copy measures.

    • @rajeshpoluru8120
      @rajeshpoluru8120 4 роки тому

      @@CurbalEN theses measures will work only for this pbix file only right .. if we want to use these measures the. We need to change the table names and field names right.. please correct me if am wrong

    • @CurbalEN
      @CurbalEN  4 роки тому

      It depends on what you are trying to do. Sometimes you will have to.

  • @alejandroparramartin5745
    @alejandroparramartin5745 3 роки тому

    Hola Ruth, un video muy interesante!
    He visto que te preguntaban
    sobre los problemas que podrían surgir con los visuales. En el caso de las medidas, al cambiar la referencia de la tabla no hay problema (puedes borrar la tabla Order_details una vez cambiadas todas las referencias), pero la duda me surge con las columnas.
    Si yo tengo un visual con la columna 1 de la tabla Order_details, y borro dicha tabla este visual se rompe, da igual que tenga esa misma columna en Order_details2.
    Si es solo para un visual no pasa nada, pero como tengas muchos, hay que rehacerlos todos :(
    ¿Alguna sugerencia para evitar esto? ¿Se puede acceder a los metadatos de los visuales para cambiar
    sus referencias de manera más eficiente?
    Gracias!

  • @VisakhMurukesan
    @VisakhMurukesan 4 роки тому

    Which version of PBI is this? When try to extract zip I dont see DataModelSchema. I can see only DataModel file which when opened in Notepad++ shows some weird characters

    • @CurbalEN
      @CurbalEN  4 роки тому

      Don't fast forward the video, you will miss important steps!

  • @piesogrodnika572
    @piesogrodnika572 4 роки тому

    Ruth, you should run one more minute with this video to show what were the broken visuals problems (reference to a measure should remain, right? Or it is by some GUID created "on-the-fly")
    but anyway, many thanks for this trick :)

    • @CurbalEN
      @CurbalEN  4 роки тому +1

      It is probably visuals with measures mentioning the table name. You need to change it from Order_Details2 back to Order_Details.
      That should do it. Test it and let us know.

  • @galatemalate1256
    @galatemalate1256 4 роки тому

    I don't have DataModelSchema in my .pbix, only DataModel, I open it and it is encrypted, here an extract:
    ì=”“œöSÔ£“Áå¢0s#"™…,‹¹óWxFÁ
    Why is that? :S it this DataModelSchema the same as a .bim file in a SSAS Tabular Model? Would be awesome to just copy-paste it instead of migrating all to SSAS manually.

    • @CurbalEN
      @CurbalEN  4 роки тому +1

      Don't skip any step and you will see what is wrong 😉

    • @galatemalate1256
      @galatemalate1256 4 роки тому

      @@CurbalEN :O template

    • @CurbalEN
      @CurbalEN  4 роки тому +1

      You got it 😉

  • @surajshrestha4164
    @surajshrestha4164 Рік тому

    which computer you are using.. because your none of the videos works. not even single one

    • @CurbalEN
      @CurbalEN  Рік тому

      Just a normal windows machine :)

  • @krishad100
    @krishad100 5 місяців тому

    what should i do with LineageTag
    "measures": [
    {
    "name": "Total Hours",
    "expression": "CALCULATE(sum(SelfService_Plan_DailyPlanHoursResourceVersion[ApprovedStdHours]))",
    "lineageTag": "30f8c1b1-6ef4-456a-b1fe-63a310aca7a7",
    "annotations": [
    {
    "name": "PBI_FormatHint",
    "value": "{\"isGeneralNumber\":true}"
    }
    ]
    }
    not working for some reason