Forum Discussion
Matrix: how to add a (dynamic) Calculated Column ?
- 8 years ago
Hello you can create seperate Measures:
Canceled=COUNTROWS(FILTER(DataTable,[Status)="Canceled"
Confirmed=COUNTROWS(FILTER(DataTable,[Status)="Confirmed"Ratio=DIVIDE([Confirmed],[Canceled])
Maybe you could create a table directly out of your data, but I'm not familiar with this.
It would be helpful to know more about your DataTable structure for further support.
Best regards.
Great! You did it !!!
My way:
xCountJobsCanceled = COUNTROWS(FILTER(Tabelle1;Tabelle1[Job.Status]="Canceled") )
xSumJobsCanceled = SUMX(FILTER(Tabelle1; Tabelle1[Job.Status]="Canceled");Tabelle1[Job.Total])
xSumJobsConfirmedCanceledRatio = DIVIDE([xSumJobsConfirmed];[xSumJobsCanceled])
xSumJobsConfirmedCanceledRatioText = FORMAT([xSumJobsConfirmedCanceledRatio];"0.#") & " : 1"
You're welcome.
I would appreciate my post to be marked as answer.
Best regards.