<?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 Sum rooms only if Occ is a certain percentage in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-rooms-only-if-Occ-is-a-certain-percentage/m-p/2987245#M100315</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling trying to figure out how to calculate the sum of room nights only if our Occ% is &amp;gt;=95%. I have tried everything I can think of and don't know how to search for what I am looking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Dec 2022 22:31:13 GMT</pubDate>
    <dc:creator>BrittLeigh14608</dc:creator>
    <dc:date>2022-12-23T22:31:13Z</dc:date>
    <item>
      <title>Sum rooms only if Occ is a certain percentage</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-rooms-only-if-Occ-is-a-certain-percentage/m-p/2987245#M100315</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling trying to figure out how to calculate the sum of room nights only if our Occ% is &amp;gt;=95%. I have tried everything I can think of and don't know how to search for what I am looking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 22:31:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-rooms-only-if-Occ-is-a-certain-percentage/m-p/2987245#M100315</guid>
      <dc:creator>BrittLeigh14608</dc:creator>
      <dc:date>2022-12-23T22:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sum rooms only if Occ is a certain percentage</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-rooms-only-if-Occ-is-a-certain-percentage/m-p/2987292#M100318</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="490848" data-lia-user-login="BrittLeigh14608" class="lia-mention lia-mention-user"&gt;BrittLeigh14608&lt;/a&gt;&amp;nbsp;If Occ% is a measure then you will need to do a measure aggregation across the next level of the hierarchy that also includes a filter. It's a little hard to see what is going on here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This looks like a measure aggregation problem. See my blog article about that here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The pattern is: &lt;BR /&gt;MinScoreMeasure = MINX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])&lt;BR /&gt;MaxScoreMeasure = MAXX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])&lt;BR /&gt;AvgScoreMeasure = AVERAGEX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])&lt;BR /&gt;etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could include a FILTER in your SUMMARIZE for example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 23:34:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-rooms-only-if-Occ-is-a-certain-percentage/m-p/2987292#M100318</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-12-23T23:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sum rooms only if Occ is a certain percentage</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-rooms-only-if-Occ-is-a-certain-percentage/m-p/2988060#M100402</link>
      <description>&lt;P&gt;Thank you for getting back with me so quickly. I read the blog posts and I can't figure it out.&amp;nbsp; (Sorry for the delay on getting back. We entered Icemageddon and I lost power.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are my Measures:&lt;/P&gt;&lt;P&gt;&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;And here is a list of the remaining data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2022 23:53:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-rooms-only-if-Occ-is-a-certain-percentage/m-p/2988060#M100402</guid>
      <dc:creator>BrittLeigh14608</dc:creator>
      <dc:date>2022-12-25T23:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sum rooms only if Occ is a certain percentage</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-rooms-only-if-Occ-is-a-certain-percentage/m-p/2988064#M100403</link>
      <description>&lt;P&gt;I think my main problem is that each reservation tracks individually by each individual stay date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2022 23:58:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-rooms-only-if-Occ-is-a-certain-percentage/m-p/2988064#M100403</guid>
      <dc:creator>BrittLeigh14608</dc:creator>
      <dc:date>2022-12-25T23:58:37Z</dc:date>
    </item>
  </channel>
</rss>

