+ Reply to Thread
Results 1 to 2 of 2

DAX formula : count two filters and divide

  1. #1
    Registered User
    Join Date
    03-24-2020
    Location
    London, England
    MS-Off Ver
    365
    Posts
    15

    DAX formula : count two filters and divide

    Hi all,

    I wish to sum together a COUNTROWS function and then divide it by the total number of rows.

    Total % := DIVIDE(CALCULATE(COUNTROWS(Chron),Chron[Chron Band] = "Less than 90 days", Chron[Chron Band] = "No Chron and less than 60 days"), (COUNTROWS(Chron), 0 )

    The data is under Chron Band column, I wish to count "Less than 90 days" + the count for "No Chron and less than 60 days" then to finally divide it by the total number of rows.

  2. #2
    Registered User
    Join Date
    03-24-2020
    Location
    London, England
    MS-Off Ver
    365
    Posts
    15

    Re: DAX formula : count two filters and divide

    Solved :

    Total % :=DIVIDE([Less than 60 days]+[No Chron and less than 60 days],COUNTROWS(Chron),0)

    I had already made the Measures for the above but was over complicating things.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Divide two Count Fields?
    By hchavous in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 11-16-2015, 11:49 AM
  2. [SOLVED] Multiple Criteria Count yields more when i divide
    By Webbers in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-05-2015, 11:39 AM
  3. Divide by count of months in cube pivot
    By CJHurtig in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-20-2015, 06:41 PM
  4. [SOLVED] Using Count if with Filters
    By jimbojames136 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-05-2014, 09:18 AM
  5. [SOLVED] Formula to count and divide only numbers <0 but not #NA
    By merlyn45 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-04-2013, 02:59 PM
  6. Pivot Table, Divide by count of months?
    By DoriBeE in forum Excel General
    Replies: 2
    Last Post: 05-10-2011, 04:20 PM
  7. how to count dates and divide in years
    By DMR1712 in forum Excel General
    Replies: 3
    Last Post: 07-16-2010, 02:46 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1