Based on your query "I want SAA I and SAA O," I’ll assume you’re asking for a breakdown of transactions in your dataset where "SAA I" and "SAA O" refer to specific conditions, and you want metrics like the number of transactions and total value for each. Since no specific metrics were provided, I’ll interpret "SAA I" as transactions where the T_FROMAPPLI column equals "SAA" and the I_O column equals "I" (Input), and "SAA O" as transactions where T_FROMAPPLI equals "SAA" and I_O equals "O" (Output). I’ll provide a step-by-step guide to achieve this in Power BI, along with results based on the sample data.
T_FROMAPPLI = "SAA" and I_O = "I".T_FROMAPPLI = "SAA" and I_O = "O".AMOUNT column for those rows.This interpretation aligns with the dataset’s structure, where T_FROMAPPLI indicates the application source (e.g., "SAA") and I_O indicates the transaction direction (Input or Output).
T_FROMAPPLI, I_O, and AMOUNT are correctly typed:
T_FROMAPPLI and I_O as Text.AMOUNT as Decimal Number.To calculate the metrics, we’ll create measures in Power BI’s Data Analysis Expressions (DAX).
Go to the Modeling Tab:
Define Measures:
SAA I Count = CALCULATE(COUNTROWS(Transactions), Transactions[T_FROMAPPLI] = "SAA", Transactions[I_O] = "I")
SAA I Value = CALCULATE(SUM(Transactions[AMOUNT]), Transactions[T_FROMAPPLI] = "SAA", Transactions[I_O] = "I")
SAA O Count = CALCULATE(COUNTROWS(Transactions), Transactions[T_FROMAPPLI] = "SAA", Transactions[I_O] = "O")
SAA O Value = CALCULATE(SUM(Transactions[AMOUNT]), Transactions[T_FROMAPPLI] = "SAA", Transactions[I_O] = "O")
Add a Table Visual:
SAA I Count, SAA I Value, SAA O Count, SAA O Value) to the Values area.Format the Table:
Alternative: Use Card Visuals:
From the sample data provided (23 rows), let’s check:
T_FROMAPPLI = "SAA" and I_O = "I"):
T_FROMAPPLI = "SAA" and I_O = "O"):
T_FROMAPPLI = "SAA", I_O = "O", AMOUNT = 21526.52 (USD).T_FROMAPPLI = "SAA", I_O = "O", AMOUNT = 20171.83 (AED).Output in Power BI: | Metric | Value | |-----------------------|----------| | SAA I Count | 0 | | SAA I Value | 0 | | SAA O Count | 2 | | SAA O Value | 41698.35 |
For a different layout:
I_O (shows "I" and "O").T_FROMAPPLI to "SAA" under Filters on this visual.T_FROMAPPLI = "SAA" and I_O = "I"). Your full dataset might have them, and the measures will reflect that.AMOUNT to one currency (e.g., USD) using an exchange rate (e.g., 1 AED = 0.27 USD), then adjust the measures.SYSTEM_ID containing "SAA"), let me know, and I’ll adjust the filters.This solution provides a clear, actionable way to see "SAA I" and "SAA O" metrics in Power BI. Let me know if you need further customization!