Tibco Spotfire, Remove text from cells - text

I am using Tibco Spotfire to display a list of checked reports.
I have a column "Validation statuts" with (oui , non ) values
I want color cells :
If statut is valid I Red color
If statut is invalid Orange color
And remove Text
Thank you

You have different options here such as using a graphical table with icons or a cross table but if I undesrtand correctly, if you only want to use a data table like this:
then you can create a calculated column as:
case [status]
when "oui" then " "
when "non" then ""
end as [color status]
and set the color for it

Related

TABLEAU - How to use aggregated values within STR function

My data in Tableau is in pivot format.
Region/City/Neighboor/Street columns, metric column with different numerical metrics and a column "Measure" that stores the given metric's value.
I want to create a calculated field and combine the SUM(Measure) if metric=A with some text
I tried creating a calculated filed as "Some Text" + STR(SUM(IF metric='A' THEN Measure END))
I receive an error "Cannot mix Aggregate and Non Aggregate Arguments" Is there any way to mitigate this issue ?
Thank you
Already the measure is aggerated try using this : "Some text" + str(if ATTR([Region])='Europe' then Measure_value end)

How do you change the data Color of a line chart in Power BI based on Slicer Selection

I have a table of selections that has no relationship and only serves to be a selector for a filter:
I then have this feed a slicer on my page so that when the user selectes a value, the following measure will evaluate (works great):
Metric Toggle = SWITCH(TRUE(),
SELECTEDVALUE(Metrics[Metric]) = "Current Ratio", MAX('FinancialData'[CurrentRatio])
,SELECTEDVALUE(Metrics[Metric]) = "Debt to Tangible Net Worth", MAX('FinancialData'[DebtToTNW])
,SELECTEDVALUE(Metrics[Metric]) = "Gross Sales", MAX('FinancialData'[GrossSales])
,SELECTEDVALUE(Metrics[Metric]) = "NetSales", MAX('FinancialData'[NetSales])
,SELECTEDVALUE(Metrics[Metric]) = "Current Portion of Long Term Debt", MAX('FinancialData'[CPLTD])
,SELECTEDVALUE(Metrics[Metric]) = "EBITDA", MAX('FinancialData'[EBITDA])
,0)
This measure drives a line chart. Is it possible to conditionally format the data line color on the chart for each selection? i.e If user selected "EBITDA", then line colour = Blue, If User Selected "Current Ratio", then Line Color = Red... etc
Deselect your Slicer value as below
Now add Metric to the Line Chart's Legend property and go to the Chart's property Data Color and you will find a list like below-
Now, select your specific colors for specific Metric value. Once you complete all the above setup, you will get your expected color for Line based on the Slicer selection.

Tableau: Multiple columns in a filter

I have three numeric fields named A,B,C and wants them in a single filter in tableau and based on the one selected in that filter a line chart will be shown. For e.g. in filter Stages B column is selected and line chart of B is shown. Had it been column A selected then line chart of A would be displayed .
Pardon my way of asking question by showing a image. I just picked up learning tableau and not getting this trick any where.
Here is the snapshot of data
Create a (list) parameter named 'ABC'. With the values
A
B
C
Then create a calculated field
IF ABC = 'A' THEN [column_a]
ELSEIF ABC = 'B' THEN [column_b]
ELSEIF ABC = 'C' THEN [column_c]
END
Something like that should work for you. Check out Tableau training here. It's free, but you have to sign up for an account.
Another way without creating a calculated field. Just pivot the three columns to rows and your field on which you can apply filter is created. Let me show you
This is screenshot of input data
I converted three cols to pivots to get data reshaped like this
After renaming pivoted-fields column to Stages I can add directly this one to view and get my desired result.

In Excel is there a way to show PivotTable count of cells containing a text string?

I have data from a satisfaction survey. One of the questions allows respondents to check up to 5 boxes. The resulting data is a concatenation of the text of all the boxes that were checked, i.e., "box one;box three;box four" or "box two;box five", etc. Need a pivot table to show out of all responses, how many times box 1 was checked, etc. My data is in Table format and I check the box saying "Add this data to the Data Model" when generating the PivotTable. Then I tried adding a Measure to using DAX formula:
[=COUNTAX(Survey,[What most influenced your service satisfaction?]="* box one *")]
to count how many times the text string "box one" appears in the column. I get an incorrect value = it is just returning the total number of rows in the table.
The COUNTAX function counts every row that evaluates to anything non-blank. In your case, the expression evaluates to FALSE() for every row since the asterisks don't act as wild but as literal asterisks so every row gets counted.
How about counting the rows after filtering for ones that contain "box one"?
BoxOneCount =
COUNTROWS (
FILTER ( Survey, CONTAINSSTRING ( Survey[What Influenced], "box one" ) )
)
Edit: The CONTAINSSTRING DAX function is a newer one that doesn't work in Excel. You should be able to use an alternative with FIND for Excel.
BoxOneCount =
COUNTROWS (
FILTER (
Survey,
NOT ( ISERROR ( FIND ( "box one", Survey[What Influenced] ) ) )
)
)

Moving date period filter in Excel 2010 pivot-table

Is it possible to set some kind of filter for a moving date period?
For example one of the DB views I'm trying to replicate in my pivot-table has this filter :
DATEDIFF(day, dateColumn, GETDATE()) <= 90
So basically I always want to display the last 90 days of whataver data there is in the cube table.
Is this possible?
The answer to this question is here :
http://blogs.socha.com/2010/05/sliding-date-ranges-with-excel-2010.html
Example for a moving period of 30 days :
Select a cell inside a pivot table bound to the cube so that the PivotTable tools are available
Click the Options tab on the ribbon under the PivotTable Tools section:
Click the Fields, Items & Sets drop-down in the Calculations section of this ribbon tab
Click Manage Sets… in the drop-down
Click New… and then Create Set using MDX…
Enter a name for this set in the Set name text box
Enter the MDX expression that defines the date range
Click OK
Filter(
[Date].[Date].[Date],
[Date].[Date].CurrentMember.Member_Value < Now()
AND [Date].[Date].CurrentMember.Member_Value >= DateAdd("d", -30, VBA![Date]())
)

Resources