Hi guys,
I am a new VA user and I have a question related to creating headline of the report.
I have a table with values for headline, which looks like this:
name_of_report | date_of_report | created_by |
Sample report | 2022-07-10 |
Joe Black |
Then, I use multidimentional table to present data in the following way:
Name of report | Sample report |
Date of report | 2022-07-10 |
Created by | Joe Black |
(I put name_of_report, date_of_report and created_by into "Columns" of that multidimensional table). But unfortunately it looks that I need to add some measure (like counts), because when I delete that measure the table looks like 'original' table (three columns with values). Is there a way to solve this issue?
Thanks in advance!
Filip
Hey @filippo_kow! One way to get around this is by hard-coding your name of your report and who made it into a text box, but you can use dynamic values for the date. An easy way to do that is to extract each date value from your table, then set each aggregation to average. For example:
Year: year('date'n)
Month: month('date'n)
Day: dayofmonth('date'n)
In your dynamic text box, you can add each value by selecting them as Measure roles:
Sample Report create by Joe Black.
Last Updated: {year}-{month}-{day}
The date will dynamically change as your data changes.
How will those values be chosen? Via controls? or a link from another object? Also, what version are you using?
-------------------------------------------------------------------------
Four tips to remember when you contact SAS Technical Support
Tricks for SAS Visual Analytics Report Builders
SAS Visual Analytics Learning Center
Hi @Madelyn_SAS ,
I am using version 8.5.1 (SAS Viya V.03.05) and values are chosen from drop-down list.
In general it looks in the following way:
I have a drop-down list with DATE values ('2022-05', '2022-06', '2022-07'), listing table with current report (when I select '2022-05' I print values for May, when I select '2022-06' I print values for June and so on), and I need to create headline with values from another table:
For headline I am using multidimentional table and it looks quite good. But unfortunately there is automaticaly added measure with counts, and when I delete this measue the headline looks like typical database table.
Here is a sample "data model":
TABLE WITH VALUES FOR HEADLINE | ||
DATE | NAME_OF_REPORT | VERSION_OF_REPORT |
2022-06 | Report One | v.6 |
2022-07 | Report Two | v.6_1 |
TABLE WITH VALUES | ||
DATE | SOME_CATEGORY | SOME_MESURE |
2022-06 | OneTwo | 423 |
2022-06 | ThreeFour | 241 |
2022-06 | FiveSix | 543 |
2022-06 | SevenEight | 42 |
2022-07 | NineTen | 543 |
2022-07 | ElevenTwelve | 656 |
Report, when I choose 2022-06 from drop down list:
Name of report | Report One |
Version of report | v.6 |
DATE | SOME_CATEGORY | SOME_MESURE |
2022-06 | OneTwo | 423 |
2022-06 | ThreeFour | 241 |
2022-06 | FiveSix | 543 |
2022-06 | SevenEight | 42 |
Report, when I choose 2022-07 from drop down list:
Name of report | Report Two |
Version of report |
v.6_1 |
DATE | SOME_CATEGORY | SOME_MESURE |
2022-07 | NineTen | 543 |
2022-07 | ElevenTwelve | 656 |
Regards,
Filip
Hi @Stu_SAS ,
Thanks a lot for your reply. I have very basic question 😉
You wrote that I should extract each date value from my table and then add it to dynamic text box. And my quesiton is: where exactly should I do that 🙂 ? I mean, let's assume that I have a table with date values, and where exactly in VA I can extract date from my table?
Thanks in advance,
Filip
Hey @filippo_kow! In VA this would be a new calculated item. You'll do this by going to the Data tab and selecting "New data item," then "Calculated Item" from the drop-down menu. You can then get your individual day/month/year values by using the functions shown in my previous post. You will create one data item for each part of the date (e.g. one for day, one for month, and one for year).
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.
Find more tutorials on the SAS Users YouTube channel.