<?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: create of simple calculations and  visual. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-of-simple-calculations-and-visual/m-p/4065836#M161408</link>
    <description>&lt;H3&gt;Comparison of Revenue and Expenses by Region&lt;/H3&gt;&lt;P&gt;To create a clustered column chart comparing revenue and expenses by region:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create Measures for Revenue and Expenses by Region:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;RevenueByRegion = CALCULATE( SUM(Transactions[Amount]), Transactions[Type] = "Revenue", ALLEXCEPT(Transactions, Transactions[RegionID]) ) ExpensesByRegion = CALCULATE( SUM(Transactions[Amount]), Transactions[Type] = "Expense", ALLEXCEPT(Transactions, Transactions[RegionID]) )&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Build the Clustered Column Chart:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a clustered column chart to your report.&lt;/LI&gt;&lt;LI&gt;Drag RegionName from the Regions table to the Axis field.&lt;/LI&gt;&lt;LI&gt;Drag RevenueByRegion and ExpensesByRegion measures to the Values field.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;2. Calculation of Year-over-Year Growth for Revenue and Profit&lt;/H3&gt;&lt;P&gt;To calculate year-over-year (YoY) growth:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create Measures for YoY Growth:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;RevenueLastYear = CALCULATE( [TotalRevenue], SAMEPERIODLASTYEAR('Date'[Date]) ) RevenueYoYGrowth = DIVIDE( [TotalRevenue] - [RevenueLastYear], [RevenueLastYear] ) ProfitLastYear = CALCULATE( [Profit], SAMEPERIODLASTYEAR('Date'[Date]) ) ProfitYoYGrowth = DIVIDE( [Profit] - [ProfitLastYear], [ProfitLastYear] )&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Display YoY Growth:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a card visual to show the YoY growth percentage for both revenue and profit.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;3. Line Chart Showing the Trend of Revenue and Profit Over the Past Three Years&lt;/H3&gt;&lt;P&gt;To show a line chart of revenue and profit trends:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Ensure You Have a Date Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If not, create one to help with time-based calculations.&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Date = CALENDAR(MIN(Transactions[Date]), MAX(Transactions[Date]))&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create Measures for Revenue and Profit Trend:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;RevenueTrend = CALCULATE( [TotalRevenue], DATESINPERIOD('Date'[Date], MAX('Date'[Date]), -3, YEAR) ) ProfitTrend = CALCULATE( [Profit], DATESINPERIOD('Date'[Date], MAX('Date'[Date]), -3, YEAR) )&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Build the Line Chart:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a line chart to your report.&lt;/LI&gt;&lt;LI&gt;Drag Date from the Date table to the Axis field.&lt;/LI&gt;&lt;LI&gt;Drag RevenueTrend and ProfitTrend measures to the Values field.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;4. Waterfall Chart Showing the Breakdown of Profit by Region and Department&lt;/H3&gt;&lt;P&gt;To create a waterfall chart for profit breakdown:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create Measures for Profit by Region and Department:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;ProfitByRegion = CALCULATE( [Profit], ALLEXCEPT(Transactions, Transactions[RegionID]) ) ProfitByDepartment = CALCULATE( [Profit], ALLEXCEPT(Transactions, Transactions[DepartmentID]) )&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Build the Waterfall Chart:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a waterfall chart to your report.&lt;/LI&gt;&lt;LI&gt;Drag RegionName and DepartmentName to the Category field.&lt;/LI&gt;&lt;LI&gt;Drag ProfitByRegion or ProfitByDepartment to the Values field.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Mon, 29 Jul 2024 01:28:36 GMT</pubDate>
    <dc:creator>Shravan133</dc:creator>
    <dc:date>2024-07-29T01:28:36Z</dc:date>
    <item>
      <title>create of simple calculations and  visual.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-of-simple-calculations-and-visual/m-p/4065695#M161406</link>
      <description>&lt;P&gt;hello, guys. i'm new here and i hope i will find solution on this platform. unfortunately, power BI is new for me. i just learn some simple dax formulas, which&amp;nbsp; helped to achieve some goals, but because of short time issue i need your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;because of data sensitivity i can't share them fully, but i can give you guys some information. i have 3 Table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Transactions: TranartmentID, RegionID, Amount and type (Rev or epx)&lt;/P&gt;&lt;P&gt;2. Departments: DepartmentID and Department Name.&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Regions: RegionID and RegionName.sactionID, Date, Dep&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i already created relationship between this tables and create measures (easy ones).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&amp;nbsp;TotalRevenue = CALCULATE(SUM(Transactions[Amount]), Transactions[Type] = "Revenue")&lt;BR /&gt;2. TotalExpenses = CALCULATE(SUM(Transactions[Amount]), FinancialTransactions[Type] = "Expense")&lt;BR /&gt;3. Profit = [TotalRevenue] - [TotalExpenses].&lt;/P&gt;&lt;P&gt;4. Margin =&amp;nbsp;DIVIDE([TotalRevenue] - [TotalExpenses], [TotalRevenue])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but now i want to create:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;comparison of revenue and expenses by region. (maybe with clastered chart)&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&amp;nbsp;Calculation of Year-over-Year growth for revenue and profit&lt;/P&gt;&lt;P&gt;3. line chart showing the trend of revenue and profit over the past three years&lt;/P&gt;&lt;P&gt;4.&amp;nbsp;waterfall chart showing the breakdown of profit by region and department.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if other information is necessary, let me notify.&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you guys in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jul 2024 20:41:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-of-simple-calculations-and-visual/m-p/4065695#M161406</guid>
      <dc:creator>rohan_sharma</dc:creator>
      <dc:date>2024-07-28T20:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: create of simple calculations and  visual.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-of-simple-calculations-and-visual/m-p/4065836#M161408</link>
      <description>&lt;H3&gt;Comparison of Revenue and Expenses by Region&lt;/H3&gt;&lt;P&gt;To create a clustered column chart comparing revenue and expenses by region:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create Measures for Revenue and Expenses by Region:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;RevenueByRegion = CALCULATE( SUM(Transactions[Amount]), Transactions[Type] = "Revenue", ALLEXCEPT(Transactions, Transactions[RegionID]) ) ExpensesByRegion = CALCULATE( SUM(Transactions[Amount]), Transactions[Type] = "Expense", ALLEXCEPT(Transactions, Transactions[RegionID]) )&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Build the Clustered Column Chart:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a clustered column chart to your report.&lt;/LI&gt;&lt;LI&gt;Drag RegionName from the Regions table to the Axis field.&lt;/LI&gt;&lt;LI&gt;Drag RevenueByRegion and ExpensesByRegion measures to the Values field.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;2. Calculation of Year-over-Year Growth for Revenue and Profit&lt;/H3&gt;&lt;P&gt;To calculate year-over-year (YoY) growth:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create Measures for YoY Growth:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;RevenueLastYear = CALCULATE( [TotalRevenue], SAMEPERIODLASTYEAR('Date'[Date]) ) RevenueYoYGrowth = DIVIDE( [TotalRevenue] - [RevenueLastYear], [RevenueLastYear] ) ProfitLastYear = CALCULATE( [Profit], SAMEPERIODLASTYEAR('Date'[Date]) ) ProfitYoYGrowth = DIVIDE( [Profit] - [ProfitLastYear], [ProfitLastYear] )&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Display YoY Growth:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a card visual to show the YoY growth percentage for both revenue and profit.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;3. Line Chart Showing the Trend of Revenue and Profit Over the Past Three Years&lt;/H3&gt;&lt;P&gt;To show a line chart of revenue and profit trends:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Ensure You Have a Date Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If not, create one to help with time-based calculations.&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Date = CALENDAR(MIN(Transactions[Date]), MAX(Transactions[Date]))&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create Measures for Revenue and Profit Trend:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;RevenueTrend = CALCULATE( [TotalRevenue], DATESINPERIOD('Date'[Date], MAX('Date'[Date]), -3, YEAR) ) ProfitTrend = CALCULATE( [Profit], DATESINPERIOD('Date'[Date], MAX('Date'[Date]), -3, YEAR) )&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Build the Line Chart:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a line chart to your report.&lt;/LI&gt;&lt;LI&gt;Drag Date from the Date table to the Axis field.&lt;/LI&gt;&lt;LI&gt;Drag RevenueTrend and ProfitTrend measures to the Values field.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;4. Waterfall Chart Showing the Breakdown of Profit by Region and Department&lt;/H3&gt;&lt;P&gt;To create a waterfall chart for profit breakdown:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create Measures for Profit by Region and Department:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;ProfitByRegion = CALCULATE( [Profit], ALLEXCEPT(Transactions, Transactions[RegionID]) ) ProfitByDepartment = CALCULATE( [Profit], ALLEXCEPT(Transactions, Transactions[DepartmentID]) )&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Build the Waterfall Chart:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a waterfall chart to your report.&lt;/LI&gt;&lt;LI&gt;Drag RegionName and DepartmentName to the Category field.&lt;/LI&gt;&lt;LI&gt;Drag ProfitByRegion or ProfitByDepartment to the Values field.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 29 Jul 2024 01:28:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-of-simple-calculations-and-visual/m-p/4065836#M161408</guid>
      <dc:creator>Shravan133</dc:creator>
      <dc:date>2024-07-29T01:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: create of simple calculations and  visual.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-of-simple-calculations-and-visual/m-p/4066006#M161411</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="781982" data-lia-user-login="rohan_sharma" class="lia-mention lia-mention-user"&gt;rohan_sharma&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply from &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="558108" data-lia-user-login="Shravan133" class="lia-mention lia-mention-user"&gt;Shravan133&lt;/a&gt;&amp;nbsp;, please allow me to provide another insight:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;comparison of revenue and expenses by region.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;&amp;nbsp;Calculation of Year-over-Year growth for revenue and profit.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;YoYRevenueGrowth = 
VAR _PreviousYearRevenue =
    CALCULATE (
        SUM ( 'Transactions'[Amount] ),
        FILTER (
            ALL ( 'Transactions' ),
            YEAR ( 'Transactions'[Date] )
                = YEAR ( MAX ( 'Transactions'[Date] ) ) - 1
                &amp;amp;&amp;amp; 'Transactions'[Type] = "Revenue"
        )
    )
VAR _CurrrentYearRevenue =
    CALCULATE (
        SUM ( 'Transactions'[Amount] ),
        FILTER (
            ALL ( 'Transactions' ),
            YEAR ( 'Transactions'[Date] ) = YEAR ( MAX ( 'Transactions'[Date] ) )
                &amp;amp;&amp;amp; 'Transactions'[Type] = "Revenue"
        )
    )
RETURN
    DIVIDE ( _CurrrentYearRevenue - _PreviousYearRevenue, _PreviousYearRevenue )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;YoYProfitGrowth = 
VAR _PreviousYearRevenue =
    CALCULATE (
        SUM ( 'Transactions'[Amount] ),
        FILTER (
            ALL ( 'Transactions' ),
            YEAR ( 'Transactions'[Date] )
                = YEAR ( MAX ( 'Transactions'[Date] ) ) - 1
                &amp;amp;&amp;amp; 'Transactions'[Type] = "Revenue"
        )
    )
VAR _CurrrentYearRevenue =
    CALCULATE (
        SUM ( 'Transactions'[Amount] ),
        FILTER (
            ALL ( 'Transactions' ),
            YEAR ( 'Transactions'[Date] ) = YEAR ( MAX ( 'Transactions'[Date] ) )
                &amp;amp;&amp;amp; 'Transactions'[Type] = "Revenue"
        )
    )
VAR _PreviousYearExpense =
    CALCULATE (
        SUM ( 'Transactions'[Amount] ),
        FILTER (
            ALL ( 'Transactions' ),
            YEAR ( 'Transactions'[Date] )
                = YEAR ( MAX ( 'Transactions'[Date] ) ) - 1
                &amp;amp;&amp;amp; 'Transactions'[Type] = "Expense"
        )
    )
VAR _CurrrentYearExpense =
    CALCULATE (
        SUM ( 'Transactions'[Amount] ),
        FILTER (
            ALL ( 'Transactions' ),
            YEAR ( 'Transactions'[Date] ) = YEAR ( MAX ( 'Transactions'[Date] ) )
                &amp;amp;&amp;amp; 'Transactions'[Type] = "Expense"
        )
    )
VAR _PreviousYearProfit = _PreviousYearRevenue - _PreviousYearExpense
VAR _CurrrentYearProfit = _CurrrentYearRevenue - _CurrrentYearExpense
RETURN
    DIVIDE ( _CurrrentYearProfit - _PreviousYearProfit, _PreviousYearProfit )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. line chart showing the trend of revenue and profit over the past three years.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4.&amp;nbsp;waterfall chart showing the breakdown of profit by region and department.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 02:29:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-of-simple-calculations-and-visual/m-p/4066006#M161411</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-29T02:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: create of simple calculations and  visual.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-of-simple-calculations-and-visual/m-p/4066783#M161444</link>
      <description>&lt;P&gt;hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="73093" data-lia-user-login="rohan" class="lia-mention lia-mention-user"&gt;rohan&lt;/a&gt;&lt;/P&gt;&lt;P&gt;To simplify the matter and it is accepted in practice, it is better to create a date table separately, which you will connect to your main table (transactions). To do this, use the function of creating a new table and use the following Dax code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calendar =&lt;BR /&gt;ADDCOLUMNS (&lt;BR /&gt;CALENDAR (Max(Transaction[Date])), Min(Transaction[Date])),&lt;BR /&gt;"Year", YEAR([Date]),&lt;BR /&gt;"Month", MONTH([Date]),&lt;BR /&gt;"MonthName", FORMAT([Date], "MMM YYYY")&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After creating of Calendar Table, create a relationship between Transaction Table and it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Dax code for Expenses and Revenues By region:&lt;/P&gt;&lt;P&gt;RevenueByRegion = CALCULATE([TotalRevenue], ALLEXCEPT(Regions, Regions[RegionName]))&lt;BR /&gt;ExpensesByRegion = CALCULATE([TotalExpenses], ALLEXCEPT(Regions, Regions[RegionName]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;create clastered chart from power BI visuals section.&lt;/LI&gt;&lt;LI&gt;Drag Date for X-axis and Drag Above measure for Y-axis.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;2.&amp;nbsp;Calculation of Year-over-Year growth for revenue and profit&lt;/P&gt;&lt;P&gt;Dax:&amp;nbsp;&lt;/P&gt;&lt;P&gt;YoYRevenueGrowth = CALCULATE([TotalRevenue], DATEADD(Calendar[Date], -1, YEAR))&lt;BR /&gt;YoYProfitGrowth = CALCULATE([Profit], DATEADD(Calendar[Date], -1, YEAR))&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;use Matrix Visual and drag and drop this two measures.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;3.&amp;nbsp;line chart showing the trend of revenue and profit over the past three years:&lt;/P&gt;&lt;P&gt;Dax:&lt;/P&gt;&lt;P&gt;MonthlyRevenue = CALCULATE([TotalRevenue], DATESMTD(Calendar[Date]))&lt;BR /&gt;MonthlyProfit = CALCULATE([Profit], DATESMTD(Calendar[Date]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;use monthly analyze method, the trend will be shown better.&lt;/LI&gt;&lt;LI&gt;create line chart&lt;/LI&gt;&lt;LI&gt;drag and drop calendar for X-axis and measures for Y-axis.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;4.&amp;nbsp;waterfall chart showing the breakdown of profit by region and department.&lt;/P&gt;&lt;P&gt;Dax:&amp;nbsp;&lt;/P&gt;&lt;P&gt;ProfitByRegion = CALCULATE([Profit], ALLEXCEPT(Regions, Regions[RegionName]))&lt;BR /&gt;ProfitByDepartment = CALCULATE([Profit], ALLEXCEPT(Departments, Departments[DepartmentName]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create Waterfall chart&lt;/LI&gt;&lt;LI&gt;Drag RegionName and DepartmentName to the Category field.&lt;/LI&gt;&lt;LI&gt;Drag ProfitByRegion and ProfitByDepartment to the Values field.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if this helps you, make sure to approve my solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;for other tips write me in DM.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 10:07:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-of-simple-calculations-and-visual/m-p/4066783#M161444</guid>
      <dc:creator>Gaga_Jin</dc:creator>
      <dc:date>2024-07-29T10:07:39Z</dc:date>
    </item>
  </channel>
</rss>

