<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to create CG Measures , Date Dimension Table , Calculated Columns through Rest API . in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-create-CG-Measures-Date-Dimension-Table-Calculated/m-p/1930158#M30239</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;#1, Calculate fields are based on DAX formulas, it required AS data engine, so you can't use the rest API to create it.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;#2, AFAIK, calculate group are host on the date model, it also not able to be changed by rest API.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/" target="_blank"&gt;Creating Calculation Groups in Power BI Desktop - SQLBI&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jun 2021 08:27:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-06-30T08:27:57Z</dc:date>
    <item>
      <title>How to create CG Measures , Date Dimension Table , Calculated Columns through Rest API .</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-create-CG-Measures-Date-Dimension-Table-Calculated/m-p/1921703#M30163</link>
      <description>&lt;P&gt;Hi Experts,&lt;BR /&gt;My Client wants to create Power BI Dataset through Rest API. Our Data Source Is Azure SQL Server.&lt;BR /&gt;I have found some documentation to Push the dataset from Source to Power BI Service Here are their Links.&lt;BR /&gt;1.&lt;A href="https://powerbi.microsoft.com/nl-nl/blog/newdatasets/" target="_self"&gt;Link 1&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/push-datasets/datasets-put-table-in-group" target="_self"&gt;Link 2&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I did not find out any documentation or video for creating the following things through Rest API.&lt;/P&gt;&lt;P&gt;1 .&amp;nbsp;Date Dimension Table&lt;/P&gt;&lt;P&gt;Example: Date Dimension Table Dax Code in Power BI given following.&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;DimDate = &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ADDCOLUMNS (&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; CALENDAR (&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; MIN ( FactAccountPayable[DueDate] ),&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; MAX ( FactAccountPayable[DueDate] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; ),&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; "DateYear", FORMAT ( [Date], "YYYY" ),&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; "MonthYear", FORMAT ( [Date], "MMM YYYY" ),&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; "MonthYearNbr", FORMAT ( [Date], "YYYYMM" )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;2 . DAX Table&lt;/P&gt;&lt;P&gt;Example: Table Dax Code in Power BI given the following.&lt;/P&gt;&lt;PRE&gt;Total Outstanding Amount =&lt;BR /&gt;SUMMARIZE (&lt;BR /&gt;FactAccountPayable,&lt;BR /&gt;FactAccountPayable[DocId],&lt;BR /&gt;FactAccountPayable[ClearingFlag],&lt;BR /&gt;"Total Outstanding Amount", SUM ( FactAccountPayable[OutstandingAmount] )&lt;BR /&gt;)&lt;/PRE&gt;&lt;P&gt;3 .Calculated Columns&lt;/P&gt;&lt;P&gt;Example: Calculated Column Example is given below.&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;1 . Company =&lt;/SPAN&gt;&lt;SPAN&gt;RELATED( Company[Company] )&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;&lt;SPAN&gt;2.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Date Diff Due Since =&lt;/SPAN&gt;&lt;SPAN&gt;DATEDIFF (&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;FactAccountPayable[DueDate],&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;TODAY(),&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;DAY&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;4 . Measures Table: I have created this table using the power bi default "Enter Data" function. Then just create measures into it.&lt;/P&gt;&lt;P&gt;5. Calculation Groups&lt;/P&gt;&lt;P&gt;Please help me and let me know how to do all the above things and also let me know if there any limitations for these.&lt;BR /&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;P&gt;Adeel&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 07:27:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-create-CG-Measures-Date-Dimension-Table-Calculated/m-p/1921703#M30163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-25T07:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create CG Measures , Date Dimension Table , Calculated Columns through Rest API .</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-create-CG-Measures-Date-Dimension-Table-Calculated/m-p/1924661#M30186</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Dax functions are based on the data model(AS instances), they weren't able to be used in the rest API.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt; &lt;A href="https://docs.microsoft.com/en-us/dax/" target="_blank"&gt;Data Analysis Expressions (DAX) Reference - DAX | Microsoft Docs&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;For the calendar table, you need to manually create a data table with date values and different types of Dimension&amp;nbsp;fields.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Reference link about generate calendar table based on C# language:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://gist.github.com/royashbrook/d6bd1635afdd44ea8984" target="_blank"&gt;Generate Dimension Table in C# · GitHub&lt;/A&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 06:02:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-create-CG-Measures-Date-Dimension-Table-Calculated/m-p/1924661#M30186</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-28T06:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create CG Measures , Date Dimension Table , Calculated Columns through Rest API .</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-create-CG-Measures-Date-Dimension-Table-Calculated/m-p/1925781#M30198</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;Thanks for your reply.&amp;nbsp;&lt;BR /&gt;So it means we can't create a dynamic date dimensions table through Rest APIs.&lt;BR /&gt;Can we create calculated columns through Rest API? And what about the Calculation group.Can we create&amp;nbsp; Calculation groups through Rest API?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 12:26:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-create-CG-Measures-Date-Dimension-Table-Calculated/m-p/1925781#M30198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-28T12:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to create CG Measures , Date Dimension Table , Calculated Columns through Rest API .</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-create-CG-Measures-Date-Dimension-Table-Calculated/m-p/1930158#M30239</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;#1, Calculate fields are based on DAX formulas, it required AS data engine, so you can't use the rest API to create it.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;#2, AFAIK, calculate group are host on the date model, it also not able to be changed by rest API.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/" target="_blank"&gt;Creating Calculation Groups in Power BI Desktop - SQLBI&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 08:27:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-create-CG-Measures-Date-Dimension-Table-Calculated/m-p/1930158#M30239</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-30T08:27:57Z</dc:date>
    </item>
  </channel>
</rss>

