Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello BI community
I need help creating 2 tables a report I'm creating
For context:
I have a column called WIN/LOSE which is linked to another column called TAT
If TAT has a value of 4 or less, the cell value returns a WIN
If TAT has a value of 5 or more, the cell value returns a LOSE
Here's an example:
To my point:
I'm trying to replicate 2 very basic tables in my report. I'm including my data input for you to play with
First, there's a pivot table showcasing count of Unique ID by WIN/LOSE and Month
Then I have a table with 2 formulas.
I'm using the Table visuals to reproduce both my tables exactly how they are in excel and struggling with the following:
-> Creating the same columns (How can I isolate my WIN's from my LOSE's so that i can apply my formulas)
This is how far I've gotten 😞
Please help 😪
Solved! Go to Solution.
Hi @Jesswess ,
I suggest you to add a [Monthsort] column in your table in Power Query Editor to sort your [Month] column.
For reference: Sort one column by another column in Power BI - Power BI | Microsoft Learn
The first visual you can try matrix chart to achieve your goal.
The second visual you can try measures.
Monthly TAT =
VAR _Count =
CALCULATE ( COUNT ( 'Table'[UNIQUE ID] ), 'Table'[WIN/LOSE] = "WIN" )
VAR _Total =
CALCULATE (
COUNT ( 'Table'[UNIQUE ID] ),
ALLEXCEPT ( 'Table', 'Table'[MONTH] )
)
RETURN
DIVIDE ( _Count, _Total )Cumulative TAT =
DIVIDE (
CALCULATE (
COUNT ( 'Table'[UNIQUE ID] ),
FILTER ( ALL ( 'Table' ), 'Table'[WIN/LOSE] = "WIN" )
),
CALCULATE ( COUNT ( 'Table'[UNIQUE ID] ), ALL ( 'Table' ) )
)
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Jesswess ,
I suggest you to add a [Monthsort] column in your table in Power Query Editor to sort your [Month] column.
For reference: Sort one column by another column in Power BI - Power BI | Microsoft Learn
The first visual you can try matrix chart to achieve your goal.
The second visual you can try measures.
Monthly TAT =
VAR _Count =
CALCULATE ( COUNT ( 'Table'[UNIQUE ID] ), 'Table'[WIN/LOSE] = "WIN" )
VAR _Total =
CALCULATE (
COUNT ( 'Table'[UNIQUE ID] ),
ALLEXCEPT ( 'Table', 'Table'[MONTH] )
)
RETURN
DIVIDE ( _Count, _Total )Cumulative TAT =
DIVIDE (
CALCULATE (
COUNT ( 'Table'[UNIQUE ID] ),
FILTER ( ALL ( 'Table' ), 'Table'[WIN/LOSE] = "WIN" )
),
CALCULATE ( COUNT ( 'Table'[UNIQUE ID] ), ALL ( 'Table' ) )
)
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 35 | |
| 34 | |
| 27 |
| User | Count |
|---|---|
| 136 | |
| 99 | |
| 73 | |
| 66 | |
| 65 |