How to put comma separator for 1000 in $ amount in BI Publisher - bi-publisher

I have created the report to show the amount in $ using data table in BI Publisher. It shows full amount as $ 265432. But I want to show $ 2,65,432. How to put comma separator in $ amount?

When editing your layout, you have a tab called Data Formatting in the top bar.
There you can choose your formatting preference. If that does not bring you enough flexibility, you can enhance the formatting options on the left bar, under Properties / Data Formatting

Related

Is it possible to do Alternating Color Formatting with same color for repeated rows [duplicate]

So I have a spread sheet that has a bunch of data in it... The first column is the state, second is a name. What I want to do is have the rows alternate blue/red/blue/red (to make it easy to read) but I don't want it to alternate EVERY row like evens/odds. What I want is for each state to have a different color. So all the rows with AL blue, then CA red, CT blue, etc... This is just a basic example. Obviously here I could just hardcode the 50 states, but is there any way to automate this process so that basically every time the state changes, I switch colors?
State Name
AL John
CA Bill
CA Joe
CA Chad
CT Mary
VA Beth
VA Dani
In Google Sheets you can count how many unique names there are down to the current cell and test if it's an odd number
=isodd(countunique(A$2:A2))
Apply this to the range as a custom formula in conditional formats with the first fill colour.
Then apply
=iseven(countunique(A$2:A2))
as another rule with the second fill colour.
In Excel it's more difficult to do this, would end up with something like
=ISODD(SUM(--(FREQUENCY(MATCH(A$2:A2,A$2:A2,0),MATCH(A$2:A2,A$2:A2,0))>0)))
and
=ISEVEN(SUM(--(FREQUENCY(MATCH(A$2:A2,A$2:A2,0),MATCH(A$2:A2,A$2:A2,0))>0)))
Note this only works if the data is sorted by state as in your test data.
You can use Format as a table with the following procedure:
Open the worksheet.
Select the cell range that you want to shade, or
press Ctrl+A to select the whole worksheet.
Click the Home tab.
In the Styles group, click Format as Table, and then click the style of
formatting that you want.
In the Format as Table dialog box, click OK.
Also, as an alternative you can use Conditional Formatting.

psql extremely expanded display of table on command line

I have a table that should be occupying much less space on psql command line, for some reason the format is being displayed very weirdly. Please have a look at this picture, it describes the problem better than any words I may write here.
As you may see some columns names are overlapping and the table is just ugly. If I expand the display you can see how the table is structured .
psql does not add extra spaces to the output.
The problem must be that you have lots of training spaces at least in some of the data. psql will align the output with the widest column in the result set.
One possibility how that can happen is if you define columns with a type like char(100), which will pad the value with spaces. It is a good idea to avoid the char data type.

Extracting multiple sections of text from google sheets cell

I'm trying to grab a subset of covid data from a cell in google sheets that contains a lot of superfluous data.
Specifically, the LDH vaccine information tab here has a tab containing "Vaccination by Gender by Parish" which has two things repeated 64 times: A line containing information on total series initiated and completed per parish, and a chart showing the percentage breakdowns by gender for that parish.
I'm importing this tab by copy/pasting into a google form (splitting it in 2 halfway through to get around the character limit). It returns a massive cell (or, two cells rather) containing 32(x2) instances of both the lines containing parish vaccine data and several lines containing the chart data.
Is there a way I'm not seeing to create an array formula that will isolate the two segments? I don't need the gender breakdown information, just the top-line numbers per parish. If I can get the top-line numbers into a separate cell together, I can use a split function on them, but can't separate everything correctly using the split function from a single cell.
This is the shortest of three lists/charts that display the information as a raw string (on the front-facing side, which I need to use because other people will be inputting this data into the sheet).
Edit: Here's a viewable version of the sheet.
To get to the correct tab, click "Vaccination Information" at the top of the ArcGIS dashboard. Then, click the left arrow at the bottom of the dashboard until it displays "Vaccination by Gender by Parish."
Since it is not possible to use automatic import using formulas and you have to use copy-paste, you can get the result you want faster this way.
Copy from the site and paste the data on the sheet.
Filter and remove unnecessary rows.
Split the text into columns using the "-" separator.
Search and replace, remove text and spaces from the data columns.

Google Sheets: How to make a stacked/aggregate chart

I have made a bar chart which aggregates my data, but is there any way I can split each bar based on the data it is aggregating - similar to how a stacked bar chart would look?
Here is a bad artists impression (thick blue lines mine). The idea is that it's important to know from looking at the graph if I sold 5 at £1, or 1 at £5.
Ideally this would work even if the price for each item is variable, but that is not essential (eg: if there is a 'hack' with hardcoding Apple = 3, I can live with that.)
I'm also fine inputting helper columns etc, within reason, but I would want to be able to easily continue to add things to the list on the left without having to add new helper columns each time (calculated ones are fine, of course.)
Thanks in advance.
UPDATE: With thanks to Kin Siang below, I ended up implementing a slightly modified version of their solution, which I am posting here for completeness.
I added a very large (but finite) number of helper columns to the right, with a formula in each cell which would look for the nth occurrence of the item in the main list (wrapped in an iferror to make the unused cells blank).
=iferror(index(FILTER($A:$B,$A:$A=$D2),E$1,2))
Theoretically it could run out of space one day, but I have made it suitably large that this should not be an issue. It has the advantage over the other solution that I do not need to sort or otherwise manipulate the input range and can continue trickling in data to the main list and have the chart automatically update.
Yes, it is possible to display the chart in your case, however need some data transpose in order to do so, let me show you the example with dataset
Assuming this is your original data:
First sort the data by alphabet, and enter this formula in new column
=if(G39="",1,if(G40=G39,I39+1,if(G40<>G39,1)))
Next add new column for categorical purpose, by using concatenate function
="Price"&I40
In the transform data for chart purpose, enter this formula to split all price into different row, different column for different product
=sumifs($H$40:$H$47,$G$40:$G$47,$A41,$J$40:$J$47,B$40)
After that i select stack bar chart and ensure the price in under series, in case in 23 will have some problem to set price at series correctly, you can use 33 data create stack bar chart and update the data range again, it will work also
Here is the cute chart you expected, accept if help :)
*When certain fruit has less price record, it is advised to fill in 0, as the data table need in same column (see the orange price 3), although I didnot test if blank

DataStudio Question with Google Sheets- Add commas, add percentage point

I am creating a Data Studio report using Google Sheets for my data. I am trying to add numbers (ex 1,234) and I need to keep the commas in the DataStudio report. How do I do that? DataStudio keeps removing the commas.
I am also adding percentages (ex 1.234%) and I need it to be 3 percentage points but DataStudio is only adding 2. How do I do that?
Thank you so much!
I'm not sure if you just want to change the dot/comma with something different, or if they're just hidden. If they're just hidden, you can force them to unhide in the table setting a value for the field "Decimal precision" in the "Style" tab.
But if you really want to change the dot/comma behavior, you must understand that, in DataStudio, dots and commas follows the user regional preferences, and there's no simple way to customize this (actually, the best you can do is to treat the field as text and force the symbol you want to use).
Notice that in USA and some other countries, dots are used for decimal separation and commas are used as thousand separator. In my country, Brazil, we use the opposite, and other symbols/configurations exists around the globe.
I prefer to use Google in US English because I don't like translated menus. However, I know that my users usually set their accounts to Brazilian Portuguese, so when they open the dashboard made by me, it'll be displayed using their personal preferences.
So if you just want to adjust the formatting to your regional preference, there's nothing you need to do. Just assure your Google account and your users are set accordingly.
But if you really want to force the appearance of a number to a specific need, as I said, you'll need to convert it to text and format by yourself.
I fixed this issue by deselecting "compact Numbers" in the Style Tab for the data.

Resources