<?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: Trying to convert old excel dashboard to Power BI but it uses CountIFS - Need Help Translating in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-convert-old-excel-dashboard-to-Power-BI-but-it-uses/m-p/4107682#M163003</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;That's generally:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;COUNTX(FILTER(...)...) or CALCULATE(COUNT(),FILTER(...))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/CO-CU-Excel-to-DAX-Translation/ba-p/1080018#M2077" target="_blank"&gt;CO-CU Excel to DAX Translation - Microsoft Fabric Community&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2024 20:38:04 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2024-08-19T20:38:04Z</dc:date>
    <item>
      <title>Trying to convert old excel dashboard to Power BI but it uses CountIFS - Need Help Translating</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-convert-old-excel-dashboard-to-Power-BI-but-it-uses/m-p/4107620#M163001</link>
      <description>&lt;P&gt;I am trying to convert this report from Excel into Power BI. Every morning I extract the data from our database and paste it into this report on two seperate sheets. "MTD Vol - RAW" and "Scheduled T+30 - RAW". Based on these two files the report pulls what the previous OR cases were based on their location into different buckets based on the days which are "hard numbers" because it's less than today. Today and future is based on scheduled cases for the OR areas in the same manner location and the day it is scheduled for. Which are in red because these numbers could change as the case could always be cancelled.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With moving the report to Power BI, I want to get three main things out of it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Duplicating the Metrics on the top into "cards"&lt;/LI&gt;&lt;LI&gt;Reporting out the current dates estimated case volume. The 19th would get reported out as Main - 22, OSC - 21, CVOR - 1, GI - 7, Ridesdale - 10&lt;/LI&gt;&lt;LI&gt;Being able to append the data, so that on a seperate tab I can display a YoY by month Line chart with a target of the current FY Budget numbers against actual volume based on location and then I could have a drill down by surgeon etc.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;All data has been scrubbed and made fictional based on major league baseball team line-ups. Along with locations and any other sensitive data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=IFERROR(&lt;BR /&gt;IF($B22&amp;lt;TODAY(),&lt;BR /&gt;(COUNTIFS('MTD Vol - RAW'!$B$2:$B$2622,$B22,'MTD Vol - RAW'!$A$2:$A$2622,"SJS OSC OR")),&lt;BR /&gt;(COUNTIFS('Scheduled T+30 - RAW'!$B$2:$B$3500,$B22,'Scheduled T+30 - RAW'!$A$2:$A$3500,"TEX OSC OR"))&lt;BR /&gt;),0)-M22&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another Code to get the information is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=IFERROR(&lt;BR /&gt;IF($B15&amp;lt;TODAY(),&lt;BR /&gt;SUM(COUNTIFS('MTD Vol - RAW'!$B$2:$B$2622,$B15,'MTD Vol - RAW'!$A$2:$A$2622,"TEX Virtual Procedure",'MTD Vol - RAW'!$L$2:$L$2622,$AK$3),COUNTIFS('MTD Vol - RAW'!$B$2:$B$2622,$B15,'MTD Vol - RAW'!$A$2:$A$2622,"TEX Main OR",'MTD Vol - RAW'!$L$2:$L$2622,$AK$3)),&lt;BR /&gt;SUM(COUNTIFS('Scheduled T+30 - RAW'!$B$2:$B$3500,$B15,'Scheduled T+30 - RAW'!$A$2:$A$3500,"TEX Virtual Procedure",'Scheduled T+30 - RAW'!$O$2:$O$3500,$AK$3),COUNTIFS('Scheduled T+30 - RAW'!$B$2:$B$3500,$B15,'Scheduled T+30 - RAW'!$A$2:$A$3500,"TEX Main OR",'Scheduled T+30 - RAW'!$O$2:$O$3500,$AK$3))&lt;BR /&gt;),0)-G15&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe they just over complicated the worksheet, I inherited this when I took the position.&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/11b1A4MZiXoAP89gVBpQBPdcH-XIsyhNc/view?usp=drive_link" target="_blank"&gt;https://drive.google.com/file/d/11b1A4MZiXoAP89gVBpQBPdcH-XIsyhNc/view?usp=drive_link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 19:58:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-convert-old-excel-dashboard-to-Power-BI-but-it-uses/m-p/4107620#M163001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-19T19:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to convert old excel dashboard to Power BI but it uses CountIFS - Need Help Translating</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-convert-old-excel-dashboard-to-Power-BI-but-it-uses/m-p/4107682#M163003</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;That's generally:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;COUNTX(FILTER(...)...) or CALCULATE(COUNT(),FILTER(...))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/CO-CU-Excel-to-DAX-Translation/ba-p/1080018#M2077" target="_blank"&gt;CO-CU Excel to DAX Translation - Microsoft Fabric Community&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 20:38:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-convert-old-excel-dashboard-to-Power-BI-but-it-uses/m-p/4107682#M163003</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-08-19T20:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to convert old excel dashboard to Power BI but it uses CountIFS - Need Help Translating</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-convert-old-excel-dashboard-to-Power-BI-but-it-uses/m-p/4109241#M163069</link>
      <description>&lt;P&gt;I've tried or I should say horribly failed at trying to write something using that. As I thought maybe I was over complicating it and adding to much to the script. As I only want the case to be counted and included in the sum if it matched the date to the left. Which is always going to be a singular day in the current month. If it is current date or future date then it has to pull the sum from the scheduled sheet data. I guess that's where I am not formatting it properly.&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Count of Patient Class running total &lt;/SPAN&gt;&lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; Day =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt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.&lt;/SPAN&gt;&lt;SPAN&gt;[Day]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But I need to seperate "Inpatient" cases which is everything except Short Stay/Outpatient Surgery. Which is what the excel sheet does, by referencing the cell AK3 which contains that text.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Inpatient =&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;=IFERROR(&lt;BR /&gt;IF($B8&amp;lt;TODAY(),&lt;BR /&gt;SUM(COUNTIFS('MTD Vol - RAW'!$B$2:$B$2622,$B8,'MTD Vol - RAW'!$A$2:$A$2622,"TEX Main OR",'MTD Vol - RAW'!$C$2:$C$2622,"*Orthopedics*"),COUNTIFS('MTD Vol - RAW'!$B$2:$B$2622,$B8,'MTD Vol - RAW'!$A$2:$A$2622,"TEX Main OR",'MTD Vol - RAW'!$C$2:$C$2622,"*Podiatry*")),&lt;BR /&gt;SUM(COUNTIFS('Scheduled T+30 - RAW'!$B$2:$B$3500,$B8,'Scheduled T+30 - RAW'!$A$2:$A$3500,"TEX Main OR",'Scheduled T+30 - RAW'!$E$2:$E$3500,"*Orthopedics*"),COUNTIFS('Scheduled T+30 - RAW'!$B$2:$B$3500,$B8,'Scheduled T+30 - RAW'!$A$2:$A$3500,"TEX Main OR",'Scheduled T+30 - RAW'!$E$2:$E$3500,"*Podiatry*"))&lt;BR /&gt;),0)-G8&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Outpatient =&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;=IFERROR(&lt;BR /&gt;IF($B8&amp;lt;TODAY(),&lt;BR /&gt;SUM(COUNTIFS('MTD Vol - RAW'!$B$2:$B$2622,$B8,'MTD Vol - RAW'!$A$2:$A$2622,"TEX Main OR",'MTD Vol - RAW'!$C$2:$C$2622,"*Orthopedics*",'MTD Vol - RAW'!$L$2:$L$2622,$AK$3),COUNTIFS('MTD Vol - RAW'!$B$2:$B$2622,$B8,'MTD Vol - RAW'!$A$2:$A$2622,"TEX Main OR",'MTD Vol - RAW'!$C$2:$C$2622,"*Podiatry*",'MTD Vol - RAW'!$L$2:$L$2622,$AK$3)),&lt;BR /&gt;SUM(COUNTIFS('Scheduled T+30 - RAW'!$B$2:$B$3500,$B8,'Scheduled T+30 - RAW'!$A$2:$A$3500,"TEX Main OR",'Scheduled T+30 - RAW'!$E$2:$E$3500,"*Orthopedics*",'Scheduled T+30 - RAW'!$O$2:$O$3500,$AK$3),COUNTIFS('Scheduled T+30 - RAW'!$B$2:$B$3500,$B8,'Scheduled T+30 - RAW'!$A$2:$A$3500,"TEX Main OR",'Scheduled T+30 - RAW'!$E$2:$E$3500,"*Podiatry*",'Scheduled T+30 - RAW'!$O$2:$O$3500,$AK$3))&lt;BR /&gt;),0)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Am I going in the wrong direction for this build (remodel)? &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Aug 2024 14:12:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-convert-old-excel-dashboard-to-Power-BI-but-it-uses/m-p/4109241#M163069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-20T14:12:33Z</dc:date>
    </item>
  </channel>
</rss>

