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!Get Fabric certified for FREE! Don't miss your chance! Learn more
I'm trying to generate a summary table B from different tables by date
Table B contains,
total orders, parameter B, total revenue.
What i'm using right now is multiple if conditon to get data from different tables total Orders
Solved! Go to Solution.
Hi @Anonymous
Are the tables related via "date" columns in "date" table?
like:
table1<->date table table2<->date table table3<->date table......
Do you need to select dates then Total orders for each individual postion group shows accordingly?
If so, try this measure:
Total orders =
IF (
MAX ( 'Summary_Revenue'[Position] ) = "Inbound Agents",
CALCULATE (
SUM ( 'In House COST PER CALL'[total_orders] ),
ALLSELECTED ( Date[date] )
),
IF (
MAX ( 'Summary_Revenue'[Position] ) = "Senior CSR complaint",
1,
IF (
MAX ( 'Summary_Revenue'[Position] ) = "At home agent",
CALCULATE (
SUM ( 'Home Agent COST PER CALL'[total orders] ),
ALLSELECTED ( Date[date] )
),
IF (
MAX ( 'Summary_Revenue'[Position] ) = "D",
CALCULATE (
SUM ( 'W Cost Per Call'[total orders] ),
ALLSELECTED ( Date[date] )
),
IF (
MAX ( 'Summary_Revenue'[Position] ) = "W",
CALCULATE ( SUM ( O[total orders] ), ALLSELECTED ( Date[date] ) ),
BLANK ()
)
)
)
)
)
Best Regards
Maggie
Hi @Anonymous
Are the tables related via "date" columns in "date" table?
like:
table1<->date table table2<->date table table3<->date table......
Do you need to select dates then Total orders for each individual postion group shows accordingly?
If so, try this measure:
Total orders =
IF (
MAX ( 'Summary_Revenue'[Position] ) = "Inbound Agents",
CALCULATE (
SUM ( 'In House COST PER CALL'[total_orders] ),
ALLSELECTED ( Date[date] )
),
IF (
MAX ( 'Summary_Revenue'[Position] ) = "Senior CSR complaint",
1,
IF (
MAX ( 'Summary_Revenue'[Position] ) = "At home agent",
CALCULATE (
SUM ( 'Home Agent COST PER CALL'[total orders] ),
ALLSELECTED ( Date[date] )
),
IF (
MAX ( 'Summary_Revenue'[Position] ) = "D",
CALCULATE (
SUM ( 'W Cost Per Call'[total orders] ),
ALLSELECTED ( Date[date] )
),
IF (
MAX ( 'Summary_Revenue'[Position] ) = "W",
CALCULATE ( SUM ( O[total orders] ), ALLSELECTED ( Date[date] ) ),
BLANK ()
)
)
)
)
)
Best Regards
Maggie
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 68 | |
| 59 | |
| 44 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 104 | |
| 102 | |
| 37 | |
| 26 | |
| 26 |