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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Creating a dynamic table only with years to use with Parameter

Hi

 

Im working with PBI Desktop connected to SSAS Server.

I want to create a dynamic table with just the year of a specific date column columnC from factualA, to use it as a source in a report parameter.

 

I can do this, right?

Conceptually this should be done at the SSAS Project level, not PBI, correct?

 

I'm seeing ADDVALUES, SUMMARIZE, SELECTVALUES, CALCULATETABLE... what is the most efficient way 

to simply create a table in SSAS, with the distinct year values of same date column?

 

I was trying to do = ADDCOLUMNS (VALUES(YEAR(FactualF[columnC])) but it isn't working.

 

Regards

 

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

hi,@Ricardo

    When you use live connection to connect SSAS Server, there is no sense in which a new model is being created; in other words, it's not possible to define new calculated columns, hierarchies, relationships, and so on.

You can only create report level measure.

So you can create a table in SSAS like below:

= VALUES(FactualF[columnC].[Year])

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi
this didn't work. 
= VALUES(FactualF[columnC].[Year])

 

I had to create in FactualF a year calculated column, and then

=VALUES(FactualF[Year])

but i think this is not efficient and a lost of space.

 

Can i combine VALUES with YEAR function?

 

Regards

hi,@Ricardo

     Create in FactualF a year calculated column, and then use =VALUES(FactualF[Year]) is the efficient way.

Combine VALUES with YEAR function is also run YEAR function and the run Values function. So it is the best way for you. 

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors