<?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: Measure for Average displayed in Card Visual in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/3699564#M143884</link>
    <description>&lt;P&gt;Hi, I'm having the same issue for creating a filterable average in a card visualization.&lt;BR /&gt;&lt;BR /&gt;I would like a card to display an average tool usage based upon a tool and the amount selected on a slicer.&lt;BR /&gt;&lt;BR /&gt;I am very new to DAX formulas so any help would be great.&amp;nbsp; Here is a sample of the data:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;User&lt;/TD&gt;&lt;TD&gt;Application&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12/14/2022&lt;/TD&gt;&lt;TD&gt;user1&lt;/TD&gt;&lt;TD&gt;Tool 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12/14/2022&lt;/TD&gt;&lt;TD&gt;user2&lt;/TD&gt;&lt;TD&gt;Tool 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12/14/2022&lt;/TD&gt;&lt;TD&gt;user1&lt;/TD&gt;&lt;TD&gt;Tool 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12/19/2022&lt;/TD&gt;&lt;TD&gt;user2&lt;/TD&gt;&lt;TD&gt;Tool 3&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12/27/2022&lt;/TD&gt;&lt;TD&gt;user3&lt;/TD&gt;&lt;TD&gt;Tool 2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imagine 80K rows of this data highlighting tool and user usage per day (each login is its own row).&amp;nbsp; I need a formula that will average that information based on upon the timeframe selected on the slicer.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;&lt;BR /&gt;Tom&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2024 19:05:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-02-14T19:05:30Z</dc:date>
    <item>
      <title>Measure for Average displayed in Card Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/1836479#M39117</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am displaying a Matrix visual in Power BI that shows me a specific value for business units.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Business Unit&lt;/TD&gt;&lt;TD&gt;Cost&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1,500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;2,500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Total&lt;/TD&gt;&lt;TD&gt;7,000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Cost Value in the visual contains a measure which looks something like this:&lt;/P&gt;&lt;P&gt;Cost =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SUM(table1[values]),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FILTER(table2, table2[header] = "costs"),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FILTER(table3, NOT(table3[business_units] = "2222")&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add a slicer visual to be able to select a specific date so the matrix visual shows the values for the date i select in the slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I also want to add a Card visual that shows me the Average of the [Cost] measure values depending on the dates I selected in the slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: If I select Jan 2020, Feb 2020 and March 2020 the card visual shows the Average [Cost] for the selected months.&lt;/P&gt;&lt;P&gt;If I select Jan - Dec 2020 the card visual shows the Average of the whole 12 months in the year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I write a measure to give me such an interactive Average?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 15:00:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/1836479#M39117</guid>
      <dc:creator>deboec</dc:creator>
      <dc:date>2021-05-11T15:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Average displayed in Card Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/1836694#M39128</link>
      <description>&lt;P&gt;Do you mean the average per business unit?&lt;/P&gt;&lt;P&gt;eg.&amp;nbsp; for your table above the card would display 1750..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A measure to do that would look like&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Avg per Business Unit = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AVERAGEX(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMMARIZECOLUMNS(Table[Business Unit], &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"@Cost", [Cost]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[@Cost]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 May 2021 16:43:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/1836694#M39128</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2021-05-11T16:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Average displayed in Card Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/1837610#M39165</link>
      <description>&lt;P&gt;I am looking for the average of the totals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's say the table above displays January 2020. If I select only January 2020 in the slicer I want the output "7,000".&lt;/P&gt;&lt;P&gt;Let's say the total of [Cost] across all business units in February 2020 is 5,000. If I select January 2020 and February 2020 in the slicer the output should be "6,000".&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 06:30:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/1837610#M39165</guid>
      <dc:creator>deboec</dc:creator>
      <dc:date>2021-05-12T06:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Average displayed in Card Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/1837701#M39168</link>
      <description>&lt;P&gt;OK, you'll need to replace Table[Business Unit] with year and month columns from your date table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Avg per Month =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AVERAGEX(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMMARIZECOLUMNS(Date[Year], Date[Month],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"@Cost", [Cost]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[@Cost]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 May 2021 07:05:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/1837701#M39168</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2021-05-12T07:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Average displayed in Card Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/1837804#M39172</link>
      <description>&lt;P&gt;Thank you very much!&lt;BR /&gt;Exactly what I was looking for.&lt;BR /&gt;Do you mind briefly explaning what the "@" in the function does?&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 07:33:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/1837804#M39172</guid>
      <dc:creator>deboec</dc:creator>
      <dc:date>2021-05-12T07:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Average displayed in Card Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/1837983#M39178</link>
      <description>&lt;P&gt;The&amp;nbsp;@ doesn't do anything.&amp;nbsp; It's just a naming convention used by these guys&amp;nbsp;&lt;A href="https://www.sqlbi.com/" target="_blank"&gt;https://www.sqlbi.com/&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;They explain why in this video&amp;nbsp;&lt;A href="https://www.sqlbi.com/tv/naming-temporary-columns-in-dax/" target="_blank"&gt;https://www.sqlbi.com/tv/naming-temporary-columns-in-dax/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TL;DR "&lt;SPAN&gt;a naming convention for temporary columns in DAX expressions to avoid ambiguity with the measure reference notation."&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 08:40:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/1837983#M39178</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2021-05-12T08:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Average displayed in Card Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/1842772#M39316</link>
      <description>&lt;P&gt;I do have one more question about your sintax:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use this part of your sintax:&lt;BR /&gt;&lt;EM&gt;SUMMARIZECOLUMNS(Date[Year], Date[Month],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I have 1 slicer visual in my canvas for Date[Year] and 1 slicer visual for Date[Month] to choose different years the measure doesn't work.&lt;BR /&gt;"Can't display the visual".&lt;BR /&gt;I can select 1 or more Months (e.g. Jan, Feb &amp;amp; Mar) but I cannot select a year.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 12:32:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/1842772#M39316</guid>
      <dc:creator>deboec</dc:creator>
      <dc:date>2021-05-14T12:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Average displayed in Card Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/1846966#M39405</link>
      <description>&lt;P&gt;If I use this part of your sintax:&lt;BR /&gt;&lt;EM&gt;SUMMARIZECOLUMNS(Date[Year], Date[Month],&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I have 1 slicer visual in my canvas for Date[Year] and 1 slicer visual for Date[Month] to choose different years the measure doesn't work.&lt;BR /&gt;"Can't display the visual".&lt;BR /&gt;I can select 1 or more Months (e.g. Jan, Feb &amp;amp; Mar) but I cannot select a year.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 16:26:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/1846966#M39405</guid>
      <dc:creator>deboec</dc:creator>
      <dc:date>2021-05-17T16:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Average displayed in Card Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/1847031#M39407</link>
      <description>&lt;P&gt;Ok, the SUMMARIZECOLUMNS could be a problem in that case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can change that to a SUMMARIZE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Avg per Month = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AVERAGEX(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMMARIZE(DIM_DATE, DIM_DATE[Year], DIM_DATE[Month]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Cost Measure]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 May 2021 17:12:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/1847031#M39407</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2021-05-17T17:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Average displayed in Card Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/2957054#M98270</link>
      <description>&lt;P&gt;&amp;nbsp;please Can i have Weekly Avg?&lt;BR /&gt;&amp;nbsp;thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 14:44:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/2957054#M98270</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-08T14:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Average displayed in Card Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/3699564#M143884</link>
      <description>&lt;P&gt;Hi, I'm having the same issue for creating a filterable average in a card visualization.&lt;BR /&gt;&lt;BR /&gt;I would like a card to display an average tool usage based upon a tool and the amount selected on a slicer.&lt;BR /&gt;&lt;BR /&gt;I am very new to DAX formulas so any help would be great.&amp;nbsp; Here is a sample of the data:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;User&lt;/TD&gt;&lt;TD&gt;Application&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12/14/2022&lt;/TD&gt;&lt;TD&gt;user1&lt;/TD&gt;&lt;TD&gt;Tool 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12/14/2022&lt;/TD&gt;&lt;TD&gt;user2&lt;/TD&gt;&lt;TD&gt;Tool 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12/14/2022&lt;/TD&gt;&lt;TD&gt;user1&lt;/TD&gt;&lt;TD&gt;Tool 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12/19/2022&lt;/TD&gt;&lt;TD&gt;user2&lt;/TD&gt;&lt;TD&gt;Tool 3&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12/27/2022&lt;/TD&gt;&lt;TD&gt;user3&lt;/TD&gt;&lt;TD&gt;Tool 2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imagine 80K rows of this data highlighting tool and user usage per day (each login is its own row).&amp;nbsp; I need a formula that will average that information based on upon the timeframe selected on the slicer.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;&lt;BR /&gt;Tom&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 19:05:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Average-displayed-in-Card-Visual/m-p/3699564#M143884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-14T19:05:30Z</dc:date>
    </item>
  </channel>
</rss>

