Crystal Reports breaking groups by data - visual-studio

I have Visual Studio 2015 and I have an existing Crystal Report that has three groups based on technology. It's sorted alphabetically within each technology group. Something like this. (Abbreviated data)
Technology 1 = Phone
IPhone
Android
Technology 2 = Social Media
Facebook
Snapchat
Technology 3 = VOIP
Skype
When the technology changes it prints a new header (without skipping to a new page) then lists the details.
The report works fine, but it needs to be changed. They want Technology 1 and 3
grouped together, followed by Technology 2.
I'm new to Chrystal and there are no experts here to ask and I've googled it for a day and still haven't solved the issue. Seems an expert would fix this easy.
I've tried to use the designer but the closest I've come to the result I want is I can get it to print ALL three technologies one after the other in the correct order. I.e. 1, 3, 2, but the only time it prints the second header is if the report breaks on a new page, NOT if the technology changes in the middle of the page.
I've been trying to create a formula at the group level that would check to see if the Technology = 1 or 3, print it's header and rows, ELSE Technology = 2, print it's header and rows.
When I try to create a formula I can't see any of the table data, just report elements. I tried to start with something like this:
If {table.Technology = 1}
But table doesn't exist in the formula options. It doesn't show up in intellisense.
I've read through this question and this other question, but I need the report to break on identifying the group field value, not just the fact that the group data changed.
What am I missing? Any help or suggestions is appreciated.

Related

How do I get the asdoc output table to show both the variable labels and value labels in Stata?

I'm trying to make a table using asdoc that will include both the value labels and the variable labels in the output. When I run the following line of code in Stata
asdoc list progname progtype progterm publicprivate cohortsize grereq, label
I get this in the console (no variable labels):
But in the word doc, it comes out looking like this (has variable labels but no value labels in the table cells):
How do I get both the variable and value labels in the table?
The last update of asdoc was on April 10, 2021. I announced the following in that update.
It is now almost three years that I have been developing asdoc and constantly adding features to it. With the addition of _docx and xl() classes to Stata, it is high time to add support for native docx and xlsx output to asdoc. Also, given that there exists a significant number of LaTeX users, asdoc should be able to create LaTeX documents. It gives me immense pleasure to announce asdocx that is not only more flexible in making customized tables, but also creates documents in native docx, xlsx, html, and tex formats. If you have enjoyed and find asdoc useful, please consider buying a copy of asdocx to support its development. Details related to asdocx can be found on this page.
I am still committed to fixing bugs / issues in asdoc. However, I think it makes more sense to me to add features to asdocx than asdoc, given that asdocx supports all latest developments in Word, Excel and LaTeX.
The requested feature is already available in asdocx. See the following example.
sysuse nlsw88
asdocx list industry age race married grade south in 1/20, replace label

Picking a specific bookmark based on a RLS filtered value in Power BI

I need help with Power BI utility of Bookmarking.
Suppose, i have a power bi report embedded in a website and based on RLS and roles, it is filtered to a specific user. So if the dashboard does not contain any data for a particular user, all my visuals tend to show "blanks". And i feel it is not an elegant way to show this scenario.
So i figured adding a "Card" that says "No Data available" to the report page and was fiddling around with trying to bring this forward or backwards and i didnt have success with it. 
I was thinking along the route of having bookmarked page with card visual selected first in the tab order. But i am stuck trying to make the bookmarked page come up when a role that has no data in the dashboard is picked up.
I know i must use a Measure to get it done. I would really appreciate if someone is getting an idea to help me out. 
Also, to the above scenario i mentioned, if there is any other solution that can be applied, i would like to know about it too. 
Welcome to SOF!
You can create a measure to handle the blank values.
For example, the below measure checks if the value is blank and attests your requirement of "No Data Available" and if not blank displays the actual number.
NewMeasure= IF(CALCULATE(DISTINCTCOUNT(Clients[fldPersonID]), FILTER(Clients, Clients[Has Paid= 1)) = BLANK(), "No Data Available", CALCULATE(DISTINCTCOUNT(Clients[fldPersonID]), FILTER(Clients, Clients[Has Paid=] = 1)))
Let me know how you go. Good luck!

ASP.NET Zero not mapping Paid Editions

I have recently started using the ASP.NET Zero system and noticed that when I'm attempting to change an edition to a paid edition, it does not show it when I go to edit the edition again. In my database, I have the other values that I entered so the edition is saving correctly. When editing the edition, the radio button will still say "Free."
I noticed that the EditionAppService.cs file utilizes the ObjectMapper to map from SubscribableEditions to EditionEditDto. When the SubscribableEdition enters the mapper, it has the values for Monthly and Annual prices. When it exits the mapper as the EditionEditDto, both values are null. Somehow, the ObjectMapper isn't pulling over these values.
I have attached two pictures below. The first shows the SubscribableEdition that has the AnnualPrice and the MonthlyPrice.
When I take the next step in the second picture to see the results of the ObjectMapper, you will see that it no longer has a value for either of those fields in the EditionEditDto.
This results in the edition appearing to be Free when editing it. I thought that maybe the fact that it was a nullable Decimal was the problem. But once I removed that and converted it to a normal decimal, it filled in the prices with zeroes instead of null values. When I downloaded and completed the PhoneBook tutorial, I noticed that project also had the same issue of the Edition not saving.
I am trying to figure out why the mapper isn't mapping the values over to the EditionEditDto correctly.
It's due to a missing map in CustomDtoMapper.cs that will be added in v5.1:
- configuration.CreateMap<EditionEditDto, SubscribableEdition>();
+ configuration.CreateMap<EditionEditDto, SubscribableEdition>().ReverseMap();

OpenERP reports - What are the OpenOffice Writer properties for?

I have been searching the web, this site and obviously the developers section on reports from OpenERP and I can not find any explanation as what the Openwriter properties/User defined are used for.
Spending some time on developing a first report, I came to some conclusion but can't work it all out:
There are three columns: Name, Type and Value. In all the predefined OpenERP reports I have opened using Openwriter, the schema seems to be always the same. Four rows, "Info 1" to "Info 4", all with the type "text", and then the server location, the user login id, a number and a table name.
I understand that the server location and user login id will be used when connecting to the server.
I understand that the table name will be used when creating a loop object.
Question 1: But what is the number for, the one usually corresponding to Info 3? I thought it might be the res_model id from the ir_act_window table but I found a report that doesn't match (Crossovered analytic). Any idea what the number is for and how it is defined?
EDIT Answer 1: It is linked to the binding action. When creating a new report for an existing model, then an existing binding action value on this model should be incremented by one (well, that's the theory as I haven't tried yet).
Question 2: Why is the type "text" when Info 3 is a number? I guess it is the interpretation from python and that it is the way it is and this is the only way to configure the properties to operate with OpenERP. Can someone confirm?
Question 3: Why when I add Info 5 and Info 6, pointing out to another table, hoping to create a loop on a different table, it gets totally ignored?
Question 4: Why when binding to the server it doesn't ask me anything and doesn't add the report anywhere?
EDIT Answer 4: See Answer 1 as when changing the binding action index in "Info 3" to an existing binding action index in OpenERP then it pops the binding window up.
Thanks for reading this far! I am sure answers to these questions will help a lot of people understanding at least the basic connection between Openwriter and OpenERP.
EDIT: Thanks Amit for the formatting, it is much more readable this way and I will apply it to my next messages.
Not sure what Openwriter is - I suggest you try a different reporting engine. The easiest imo is the webkit html reports, you can use normal html and "mako" templating code to iterate through the objects.

Import data from URL

The St. Louis Federal Reserve Bank has a great set of data available on a variety of their web pages, such as:
http://research.stlouisfed.org/fred2/series/OILPRICE/downloaddata?cid=32217
http://www.federalreserve.gov/releases/h10/summary/default.htm
http://research.stlouisfed.org/fred2/series/DGS20
The data sets get updated, some as often as daily. I tend to have an interest in the daily data (see the above settings on the URLS)
I'd like to import these kinds of price or rate data streams (accessible as CSV or Excel files at the above URLs) directly into Mathematica.
I've looked at the documentation on Importing[] but I find scant documentation (actually none) on how to go about something like this.
It looks like I need to navigate to the pages, send some data to select specific files and formats, trigger the download, then access the downloaded data from my own machine. Even better if I could access the data directly from the sites.
I had hoped Wolfram Alpha might make this sort thing easy, but I haven't had any success.
FinancialData[] would seem natural for this sort of thing, but I don't see anyway to do it. Financial data has lots of features, but I don't see a way yo get this sort of thing.
Does anyone have any experience with this or can someone point me in the right direction?
You can Import directly from a URL. For example, the data from federalreserve.gov can be obtained and visualized as follows.
url = "http://www.federalreserve.gov/datadownload/Output.aspx?";
url = url<>"rel=H10&series=a660e724c705cea4b7bd1d1b85789862&lastObs=&";
url = url<>"from=&to=&filetype=csv&label=include&layout=seriescolumn";
data = Import[url, "CSV"];
DateListPlot[data[[7 ;;]], Joined -> True]
I broke up url for convenience, since it's so long. I had to examine the contents of data before I knew exactly how to plot it - a step that is typically necessary. I'm sure that the data from stlouisfed.org can be obtained in a similar way, but it requires the use of an API with key to access it.
As Mark said, you can get the data directly from a URL. Your oil data can be imported from a different URL than you had:
http://research.stlouisfed.org/fred2/data/OILPRICE.txt
With that URL, you can do this:
oil = Import["http://research.stlouisfed.org/fred2/data/OILPRICE.txt",
"Table", "HeaderLines" -> 12, "DateStringFormat" -> {"Year", "Month", "Day"}];
DateListPlot[oil, Joined -> True, PlotRange -> All]
Note that "HeaderLines"->12 option strips off the header text in the first 12 lines (you have to count the header lines to know how many to remove). I've also specified the date format.
To find that URL, do as you did before, but click on a data series and then choose View Data from the menu on the left when you see the chart.
The documentation has a short example on extracting data out of a webpage:
http://reference.wolfram.com/mathematica/howto/CleanUpDataImportedFromAWebsite.html
Of course, what actually needs to be done will vary significantly from page to page.
discussion on how to do this with your API key here:
http://library.wolfram.com/infocenter/MathSource/7583/
the function is based on the API documentation. I haven't looked at the code for a couple of years and from memory I put it together rather quickly but I have used it regularly for over 2 years without problems. Here is an example for monthly non seasonally adjusted retail sales from early 1992 to now:
wolfram alpha also uses FRED data so you could use that as an alternative to direct import but it is more tricky to get the query right. I prefer to use FRED directly. Also from memory the data is only available on alpha the day after the release, which is not what you would typically want.

Resources