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 8123299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:08:12+00:00 2026-06-06T06:08:12+00:00

Goal: to create a percentage column based off the values of calculated columns. Here’s

  • 0

Goal: to create a percentage column based off the values of calculated columns.

Here’s the SQL code of the Crosstab query:

TRANSFORM Count(Master_Calendar.ID) AS CountOfID
SELECT Master_Calendar.Analyst, Count(Master_Calendar.ID) AS [Total Of ID]
FROM Master_Calendar
GROUP BY Master_Calendar.Analyst
PIVOT Master_Calendar.[Current Status];

This gives me a crosstab query that displays the amount of entries in the database that are “Completed”, “In Process”, or “Not Started”, sorted by which Analyst they belong to.

What I’m trying to do is add another column to calculate the Percent Complete — so (Completed / Total of ID) * 100. I tried putting that into an expression in another cell, but it returns with a “[Completed]” not found, even though it gives me it as an option in the Expression Builder.

Am I just naming my variables wrong, or is it not possible to do it this way? Can I reference the total count of the records that contain “Completed” using query code instead of finding out the value using a Pivot table?

Thanks for your help.

  • 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-06T06:08:14+00:00Added an answer on June 6, 2026 at 6:08 am

    Try:

    SELECT 
        xTab.Analyst,
        [Completed]/([Total of ID]/100) AS [Complete%], 
        [In Process]/([Total of ID]/100) AS [In Process%],
        [Not Started]/([Total of ID]/100) AS [Not Started%]
    FROM xTab;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Goal: create webservice that will query database and return rows, then pass it to
My goal is to create a solid line between certain columns of a Grid.
The goal: To create a .NET dll i can reference from inside SQL Server
My ultimate goal is to create a pivot-table view in MySQL with dynamic columns
AS3.0 newbie here. My goal: To create a side-scrolling motocross game (horizontal - already
Hi here's the goal: to create an automatic bit of content that toggles open
Duplicate: PHP validation/regex for URL My goal is create a PHP regex for website
I am very new to Json and my goal to create the Json output
My goal is to create a canned email on my server and then send
My goal is to create a list from menu.bin. This is the func: pitem

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.