Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9015543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:46:33+00:00 2026-06-16T03:46:33+00:00

I’ve been using PowerPivot a lot over the last year, but only minimally dipping

  • 0

I’ve been using PowerPivot a lot over the last year, but only minimally dipping into DAX (for simple RELATED and DISTINCTCOUNT measures). I often make my pivots, then copy and paste them (as values) into another worksheet where I add some computed columns and formatting. I’d like to avoid the extra work where possible (as this can be done over and over and over again), but I’m having a difficult time wrapping my head around how to create the measures to make these “custom columns” work directly through PowerPivot.

I’ve read through a number of articles and DAX tutorials, but I can’t figure out the magic behind combining CALCULATE, FILTER, COUNTROWS, etc for my particular purpose, and PD time at work has just run out. Any help would be extremely appreciated!

So here is what I currently have – a simple PowerPivot PivotTable from a SQL Server import:

 -------------------------------------
|       | 2009/10 | 2010/11 | 2011/12 |
|       |----|----|---------|----|----|
| Course|Pass|Fail|Pass|Fail|Pass|Fail|
|-------|----|----|----|----|----|----|
|MAT-121|  11|   2|  22|    |  21|   3|
|MAT-122|  13|   3|  19|    |  15|   3|
|MAT-123|    |    |  14|    |  15|   6|
|MAT-127|   6|   3|  14|    |  13|   2|
|MAT-151|    |    |  23|   1|  23|   1|
|MAT-152|  12|    |  25|   2|  25|   4|
 -------------------------------------
  1. Column labels
    • ACA_YEAR
    • PASS_FLAG
  2. Row labels
    • COURSE_NAME
  3. Values
    • COUNTA(REG_ID)

I would like to add a “Percent Fail” column, calculated as “=Fail/(Pass+Fail)”.

 -------------------------------------------------------
|       |   2009/10     |   2010/11     |   2011/12     |
|       |---------------|---------------|---------------|
| Course|Pass|Fail|%Fail|Pass|Fail|%Fail|Pass|Fail|%Fail|
|-------|----|----|-----|----|----|-----|----|----|-----|
|MAT-121|  11|   2|  15%|  22|    |   0%|  21|   3|  13%|
|MAT-122|  13|   3|  23%|  19|    |   0%|  15|   3|  17%|
|MAT-123|    |    |     |  14|    |     |  15|   6|  29%|
|MAT-127|   6|   3|  33%|  14|    |   0%|  13|   2|  13%|
|MAT-151|    |    |     |  23|   1|  42%|  23|   1|   4%|
|MAT-152|  12|    |   0%|  25|   2|   7%|  25|   4|  14%|
 -------------------------------------------------------

Can I somehow override a subtotal column? Do I need to create and combine a few different measures?

Many thanks for any suggestions you may have, or required reading you can point me to!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:46:34+00:00Added an answer on June 16, 2026 at 3:46 am

    Spudsy,

    Lets assume that your values measure is called [theCount] and that the table that the column that the REG_ID is in is called ‘table’. What you need to do is create 3 measures; the first two based on [theCount] to give the count of pass and fail and the 3rd to divide the [Fail] by the total count.

    [Fail]=Calculate([theCount],table[REG_ID]=”Fail”)

    [Pass]=Calculate([theCount],table[REG_ID]=”Pass”)

    [% Fail]=[Fail] / [thecount]

    Remove the pass_flag from the pivot then drag the three measures into the values.

    There are a bunch of ways to do this but this is a simple way. The book you need is dax by rob collie

    Your difficulty in making progress with DAX may be related to your comments referencing “custom columns”! Although that’s how they come out you can’t have that excel type mentality as its more table/SQL based.

    Hope this helps.
    Jacob

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am using the SimpleRSS gem to parse a WordPress RSS feed. The only
I have a French site that I want to parse, but am running into
I'm making a simple page using Google Maps API 3. My first. One marker
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a jquery bug and I've been looking for hours now, I can't
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.