<?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 KPI card that compares this month's value with previous month in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/KPI-card-that-compares-this-month-s-value-with-previous-month/m-p/4319060#M11882</link>
    <description>&lt;P&gt;Hi! I wanted to know if there's a visual that reports the current month sales vs last month sales (in percent). Something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-center"&gt;&lt;STRONG&gt;&lt;FONT size="6"&gt;$215K&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-center"&gt;&lt;FONT size="4" color="#FF0000"&gt;(down arrow) -10%&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-center"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-justify"&gt;&lt;FONT color="#000000"&gt;I used to have something like this in Tableau, where C-level execs can easily see in a dashboard the total sales this month and the corresponding % change from last month. The visual is more important than getting the info, as I already know how to compute it in Power BI.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2024 06:17:53 GMT</pubDate>
    <dc:creator>PatrickGreen</dc:creator>
    <dc:date>2024-12-09T06:17:53Z</dc:date>
    <item>
      <title>KPI card that compares this month's value with previous month</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/KPI-card-that-compares-this-month-s-value-with-previous-month/m-p/4319060#M11882</link>
      <description>&lt;P&gt;Hi! I wanted to know if there's a visual that reports the current month sales vs last month sales (in percent). Something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-center"&gt;&lt;STRONG&gt;&lt;FONT size="6"&gt;$215K&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-center"&gt;&lt;FONT size="4" color="#FF0000"&gt;(down arrow) -10%&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-center"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-justify"&gt;&lt;FONT color="#000000"&gt;I used to have something like this in Tableau, where C-level execs can easily see in a dashboard the total sales this month and the corresponding % change from last month. The visual is more important than getting the info, as I already know how to compute it in Power BI.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 06:17:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/KPI-card-that-compares-this-month-s-value-with-previous-month/m-p/4319060#M11882</guid>
      <dc:creator>PatrickGreen</dc:creator>
      <dc:date>2024-12-09T06:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: KPI card that compares this month's value with previous month</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/KPI-card-that-compares-this-month-s-value-with-previous-month/m-p/4319335#M11883</link>
      <description>&lt;P&gt;Here's a step-by-step guide to create a KPI card that compares this month's sales with the previous month's sales:&lt;/P&gt;&lt;P&gt;Create Measures for Sales Values:&lt;/P&gt;&lt;P&gt;Create a measure for the current month's sales.&lt;BR /&gt;Create a measure for the previous month's sales.&lt;BR /&gt;Create a measure for the percentage change.&lt;BR /&gt;Here are some example DAX formulas you can use:&lt;/P&gt;&lt;P&gt;CurrentMonthSales = CALCULATE(SUM(Sales[Amount]), MONTH(Sales[Date]) = MONTH(TODAY()), YEAR(Sales[Date]) = YEAR(TODAY()))&lt;/P&gt;&lt;P&gt;PreviousMonthSales = CALCULATE(SUM(Sales[Amount]), MONTH(Sales[Date]) = MONTH(TODAY()) - 1, YEAR(Sales[Date]) = YEAR(TODAY()))&lt;/P&gt;&lt;P&gt;SalesChangePercent = DIVIDE([CurrentMonthSales] - [PreviousMonthSales], [PreviousMonthSales], 0)&lt;BR /&gt;Create a KPI Card:&lt;/P&gt;&lt;P&gt;In Power BI, go to the "Visualizations" pane and select the "Card" visual.&lt;BR /&gt;Drag the CurrentMonthSales measure to the "Values" field of the card.&lt;BR /&gt;Format the card to display the value in currency format.&lt;BR /&gt;Add a Percentage Change Indicator:&lt;/P&gt;&lt;P&gt;To show the percentage change, you can use a "Multi-row card" or a "Text box" to display the SalesChangePercent measure.&lt;BR /&gt;Alternatively, you can use a custom visual like the "KPI Indicator" from the Power BI marketplace, which allows you to show both the value and the percentage change with an arrow indicator.&lt;BR /&gt;Customize the Visual:&lt;/P&gt;&lt;P&gt;Format the card to include an arrow indicator for the percentage change.&lt;BR /&gt;Use conditional formatting to change the color of the arrow based on whether the change is positive or negative.&lt;BR /&gt;Here's an example of how you might set up the visuals:&lt;/P&gt;&lt;P&gt;Card Visual for Current Month Sales:&lt;/P&gt;&lt;P&gt;Value: CurrentMonthSales&lt;BR /&gt;Format: Currency&lt;BR /&gt;Multi-row Card or Text Box for Percentage Change:&lt;/P&gt;&lt;P&gt;Value: SalesChangePercent&lt;BR /&gt;Format: Percentage&lt;BR /&gt;Conditional Formatting: Green for positive change, Red for negative change&lt;BR /&gt;By following these steps, you should be able to create a KPI card in Power BI that visually represents the current month's sales and the percentage change from the previous month&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Best Regards&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Saud Ansari&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;If this post helps, please Accept it as a Solution to help other members find it. I appreciate your Kudos!&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 08:43:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/KPI-card-that-compares-this-month-s-value-with-previous-month/m-p/4319335#M11883</guid>
      <dc:creator>saud968</dc:creator>
      <dc:date>2024-12-09T08:43:26Z</dc:date>
    </item>
  </channel>
</rss>

