私が達成しようとしていることを達成するためのより簡単な方法を知っているなら、私は提案を受け入れていると言って、これの前置きをさせてください。私はTableauDesktopで独学で学び、このプラットフォーム形式で8か月しか作業していません。
グロスおよびネットの欠陥の重大度をカウントで測定するために作成された7つの計算フィールドがあります(重大、中程度、マイナー、および合格)。たとえば、グロスメジャーの場合、次のように計算フィールドを記述します。
CountD(IIF([Initial Loan Rating]="Minor",[Id (Projectloanfiles)],Null))
この計算フィールドの名前は「-GrossMinor」です。
ネットメジャーは次のとおりです。
CountD(IIF([Initial Loan Rating]="Minor",[Id (Projectloanfiles)],Null))
この計算フィールドの名前は「-NetMinor」です。
to adjust for the other four levels, I'm simply changing "Minor" to, Moderate, Severe or Pass and adjust the name of the calculated field accordingly. Then I grab the calculated fields I've created, drag them to rows.
So these all work great, but I'd like to also create a filter using a calculated field to where it would toggle between showing "Gross" or "Net" defects. I know I could just create a separate worksheet, one showing only Gross and another showing only Net. But I'd rather try and keep the number of worksheets as low as possible.
All help is much appreciated!
Scott
If I understood your problem correctly then you solve this using Parameters
Create a parameter with datatype String
and then add custom values Gross
and Net
.
これで、1枚のシートのみを使用して、次のように数式を変更できます。
if [Parameter]="Gross"
CountD(IIF([Initial Loan Rating]="Minor",[Id (Projectloanfiles)],Null)) //'-Gross Minor'
elseif [Parameter]="Net"
then CountD(IIF([Initial Loan Rating]="Minor",[Id (Projectloanfiles)],Null)) //'-Net Minor'
end
このプロセスにより、4つの数式が作成され、パラメーターを使用して、グロスとネットを切り替えることができます。
編集------------------------------------------------- ---------------------------
IF [Gross/Net Parameter]="Gross" AND [Initial Loan Rating]="Minor" //'-Gross Minor'
THEN [Id (Projectloanfiles)]
ELSEIF [Gross/Net Parameter]="Gross" AND [Initial Loan Rating]="Moderate" //'-Gross Moderate'
THEN [Id (Projectloanfiles)]
ELSEIF [Gross/Net Parameter]="Gross" AND [Initial Loan Rating]="Severe" //'-Gross Severe'
THEN [Id (Projectloanfiles)]
ELSEIF [Gross/Net Parameter]="Net" AND [Final Loan Rating]="Pass" //'-Net Pass
THEN [Id (Projectloanfiles)]
ELSEIF [Gross/Net Parameter]="Net" AND [Final Loan Rating]="Minor" //'-Net Minor'
THEN [Id (Projectloanfiles)]
ELSEIF [Gross/Net Parameter]="Net" AND [Final Loan Rating]="Moderate" //'-Net Moderate'
THEN [Id (Projectloanfiles)]
ELSEIF [Gross/Net Parameter]="Net" AND [Final Loan Rating]="Severe" //'-Net Severe'
THEN [Id (Projectloanfiles)]
ELSE Null
END
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加