I want to use proc report to build a display instead of simple proc print. My data look like this.
A B C D
Bill Harry Bog The
Bill Harry Hog Quick
Bill Harry Log Brown
Bill Hermione Bog Fox
Bill Hermione Hog Jumps
Bill Hermione Log Over
Bill Ron Bog The
Bill Ron Hog Lazy
Bill Ron Log Dogs
Ted Harry Bog Peter
Ted Harry Hog Piper
Ted Harry Log Picked
Ted Hermione Bog A
Ted Hermione Hog Powerful
Ted Hermione Log Peck
Ted Ron Bog Of
Ted Ron Hog Picked
Ted Ron Log Peppers
And I want the final output to look like this:
A B Bog Hog Log
Bill Harry The Quick Brown
Hermione Fox Jumps Over
Ron The Lazy Dogs
Ted Harry Peter Piper Picked
Hermione A Powerful Peck
Ron Of Pickled Peppers
All variables are character.
How do I set it up in proc report? I get close with the various combinations of group, across, etc, but I never seem to get this exactly. I'm a novice to proc report, any help appreciated.
Next time post your tried Proc REPORT code so we can get an idea of how you are thinking.
Use the comma operator to stack columns c & d and a hidden statistic to force the stacking.
proc report data=foo;
columns a b c,d n;
define a / group;
define b / group;
define c / across;
define d / display;
define n / noprint;
run;
Recommended reading: Sailing Over the ACROSS Hurdle in PROC REPORT.
Cynthia L. Zender, SAS Institute Inc., Cary, NC
Related
Elli Sagerman, a Masters of Education candidate in German Education at the University of North Carolina at Chapel Hill in 2000, collected data for a study. She looked at the effectiveness of a new type of foreign language teaching technique on grammar skills. She selected 30 students to receive tutoring. Fifteen received the new type of training during the tutorials and 15 received standard tutoring. Two students moved from the district before completing the study. Scores on a standardized German grammar test were recorded immediately before the 12-week tutorials and again 12 weeks later at the end of the trial. Sagerman wanted to see the effect of the new technique on grammar skills.
Using PROC TTEST, analyze the s data set. Assess whether the treatment group improved more than the control group.
ods graphics;
proc ttest data=data plots(shownull)=interval;
class Group;
var Change;
title "German Grammar Training, Comparing Treatment to Control";
run;
How does one create a multiple selection listbox in Qt/C++ that looks like a table?
Picture a table like this:
Sean Connery
David Niven
George Lazenby
Roger Moore
Timothy Dalton
Pierce Brosnan
Daniel Craig
such that multiple rows may be selected by clicking on them, but not parts of rows.
Something like this, by clicking on Sean Connery and Roger Moore rows, where ** indicates selection:
**Sean Connery**
David Niven
George Lazenby
**Roger Moore**
Timothy Dalton
Pierce Brosnan
Daniel Craig
I am looking at Qt documentation for QListWidget, but unclear how to do that.
I'm new to Power BI and trying to create a slicer for Classes by Instructor. The best value to display to the user is the name, since that is how users normally identify the instructors. The problem is that some instructors have had name changes. This actually leads to two problems:
1. How to roll the duplicates up into one item in the slicer selection options, and
2. How to use the combined underlying DimIDs for actually slicing the data.
Sample source table structure looks like this:
InstructorDimID InstructorID InstructorName
--------------- ------------ --------------
1 1 John Smith
2 2 Karen Jones
3 2 Karen Watson
4 3 Jennifer Anderson
5 3 Jennifer Hancock
Would like the slicer to look like this:
Jennifer Hancock
John Smith
Karen Watson
I have an idea of how I would do this in SQL but don't know if it's at all relevant for Power BI. I tried searching stackoverflow as well as Power BI sites with no luck; am looking for an approach that will help me learn how to "think in Power BI". Any tips are much appreciated.
This has to be a part of your data model.
Either add a new table keyed by InstructorID that has the current name of each Instructor, and a relationship with filter flow to your existing InstructorDim, or add a CurrentName column to your existing InstructorDim.
My project is about to show my audience where do rich people and poor people live in the city of Chicago. I have 90 different zip codes and My job is to make a map for the 90 zip codes and shade the area with rich people and poor people live. I have the data for 90 zip codes with their gross income from 2017.
I am designing a PowerBI report using DirectQuery on a database.
In the database I have tables for persons, languages, and a link table telling which language a person speaks.
Example:
Persons
-------
Anna
Jane
John
Luis
Languages
---------
English
French
Spanish
Persons_Languages
-----------------
Anna English
Anna French
Jane English
Jane French
Luis English
Luis French
Luis Spanish
I would like a report in PowerBI of the most common languages combinations. For example, in this case both Anna and Jane speak English+French, while Luis speaks English+French+Spanish. The desired report would show:
English+French 2
English+French+Spanish 1
Since I am trying to learn PowerBI, I need to exclude any solution at the database level.
Yes, Alexis Olson is right, working with direct link, can't allow you to build measures/calcolated tables on data.
You have here 2 choices:
1- change from direct link to import and then build your ad hoc measure/table
2- directly build your measure on the source database, and then access the table from PBI
Good luck ;)