Extract All DAX Measures from a PowerPivot Data Model in Excel

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2024

ความคิดเห็น • 7

  • @Data.Analytics.Central
    @Data.Analytics.Central  ปีที่แล้ว +3

    The SQL command that does the smart trick:
    SELECT
    MEASUREGROUP_NAME as Table_Name,
    MEASURE_NAME,
    EXPRESSION as Formula
    FROM $SYSTEM.MDSCHEMA_MEASURES
    WHERE MEASURE_AGGREGATOR = 0
    ORDER BY MEASUREGROUP_NAME

    • @h.esther9400
      @h.esther9400 10 หลายเดือนก่อน

      When you create a measure from the Measures menu on the Power Pivot tab, you get a dialog box which has a field called “description”. I wonder if we can have that field also show in the table we generate with your script.
      What I’m really trying to do is to change the order my measures appear in the pivot table field list. Right now, they don’t appear in a logical order. As far as I know, the only way to reorder the measures is to delete them and recreate them in the order I want them to appear. So I’m looking for a way to get all the info on the measures so I can just cut and paste when I recreate them.

  • @itamarconceicao6708
    @itamarconceicao6708 8 หลายเดือนก่อน

    Fantastic!!! Good job! Saved my life... I'm having problems with excel 2019 and power pivot.
    My Excel is 32bit and is complaining about lack of memory and this destroyed my connections and one of the queries was lost and I can no longer update or remove it to rebuild.
    Is there any trick for this?
    Let me ask you another question, but now about your tip...
    Is it possible to do the opposite way?
    Could you give an example like this?
    Thanks for sharing!!!
    Itamar C. São Paulo/BR

  • @h.esther9400
    @h.esther9400 10 หลายเดือนก่อน

    This is fantastic! Thank you for this video. Is there any way to also display the description of the formulas?

    • @Data.Analytics.Central
      @Data.Analytics.Central  10 หลายเดือนก่อน

      Hi, thanks for the appreciation! Can you give more details for your question?

  • @paulpaul1623
    @paulpaul1623 8 หลายเดือนก่อน

    awesome. thanks!