Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I have data that has different seasons dependent upon category (see tables) and need a way to calculate these differences. I have a standard date table and a separate table that contains a column for two different rate types. Any help would be greatly appreciated!
Residential:
| Month | Season |
January | Winter |
| February | Winter |
| March | Winter |
| April | Winter |
| May | Winter |
| June | Summer |
| July | Summer |
| August | Summer |
| September | Summer |
| October | Winter |
| November | Winter |
| December | Winter |
Commercial
| Month | Season |
January | Winter |
| February | Winter |
| March | Winter |
| April | Winter |
| May | Summer |
| June | Summer |
| July | Summer |
| August | Summer |
| September | Summer |
| October | Summer |
| November | Winter |
| December | Winter |
Solved! Go to Solution.
Hi @CMccown ,
According to your description, I create a sample to reproduce your problem.
There're four tables in the sample. Residential and Commercial tables are the same with yours. Here's the other two tables:
Cost table:
Cost table show the cost one day in different season.
Date table:
Suppose you want to calculate the cost of all days in each month per different category. Calculate two measures.
CommercialCost =
SUMX (
FILTER ( 'Date', 'Date'[Month] = MAX ( 'Commercial'[Month] ) ),
COUNTROWS ( 'Date' )
* MAXX (
FILTER ( 'Cost', 'Cost'[Season] = MAX ( 'Commercial'[Season] ) ),
'Cost'[Cost]
)
)
ResidentialCost =
SUMX (
FILTER ( 'Date', 'Date'[Month] = MAX ( 'Residential'[Month] ) ),
COUNTROWS ( 'Date' )
* MAXX (
FILTER ( 'Cost', 'Cost'[Season] = MAX ( 'Residential'[Season] ) ),
'Cost'[Cost]
)
)
Result:
Residential:
Commercial:
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @CMccown ,
According to your description, I create a sample to reproduce your problem.
There're four tables in the sample. Residential and Commercial tables are the same with yours. Here's the other two tables:
Cost table:
Cost table show the cost one day in different season.
Date table:
Suppose you want to calculate the cost of all days in each month per different category. Calculate two measures.
CommercialCost =
SUMX (
FILTER ( 'Date', 'Date'[Month] = MAX ( 'Commercial'[Month] ) ),
COUNTROWS ( 'Date' )
* MAXX (
FILTER ( 'Cost', 'Cost'[Season] = MAX ( 'Commercial'[Season] ) ),
'Cost'[Cost]
)
)
ResidentialCost =
SUMX (
FILTER ( 'Date', 'Date'[Month] = MAX ( 'Residential'[Month] ) ),
COUNTROWS ( 'Date' )
* MAXX (
FILTER ( 'Cost', 'Cost'[Season] = MAX ( 'Residential'[Season] ) ),
'Cost'[Cost]
)
)
Result:
Residential:
Commercial:
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 49 | |
| 40 | |
| 37 | |
| 14 | |
| 13 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 37 | |
| 28 | |
| 27 |