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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.