Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Dynamic Table based on selected value

Hi everyone, 

I would like to create a table based, such as: 

MonthTable =
ADDCOLUMNS(
GENERATESERIES(1, 12, 1), 
"ValueInPesos",
VAR SelectedYearSELECTEDVALUE(Calendar[Year]),
RETURN
CALCULATE(
[ValueInPesos],
FILTER(
'EXP (Summary)',
'EXP (Summary)'[Año] = SelectedYear 
)
) / 12
)
 
My goal is to divide a budget for a specific year by 12 in order to equal repartition over the months. My problem is that when I select a specific year from my calendar ('EXP (Summary)'[Año] is linked to my Calendar[Year]), I got blank values and so no values. If I change SelectedYear by a constant value (like 2024), it works. In my opinion, it is simply that my table doesn't get access to the selected value. 
 
Does anyone know how to solve this issue?
1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

You cannot create calulated columns or calculated tables from measures or filters.  Only the other way round.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

You cannot create calulated columns or calculated tables from measures or filters.  Only the other way round.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.