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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
prakash11440278
Post Prodigy
Post Prodigy

Selected value function in PBI Report Builder

Hi All,

How to convert the below dax to PBI report builder code.

 

Actual DAX Expression:

Calculate(sum(sales),filter(all(table),table[year]=selectedvalue(parameter[year])

 

Expected:

Report Builder Expression

 

In above dax code year is a parameter created in paginated report.

Expression will return total sales of year parameter selected in the report.

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @prakash11440278 ,

 

In my opinion, this should be okay. Then if not, you can create a Power bi dataset and connect to a Power bi dataset to achieve the same effect.

 

Best Regards,

Neeko Tang

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @prakash11440278 ,

 

In Report Builder you can try this to summarize and create a new report.

EVALUATE
SUMMARIZECOLUMNS(
DimCLient[ClientName]
,DimVehicle[Make]
,DimVehicle[Model]
,FILTER(VALUES(DimVehicle[Color]), DimVehicle[Color] = @Colour)
,"Sales", SUM(FactSales[SalePrice])
)

 

For more information you can refer to the following link.

Introduction to DAX for paginated reports - Simple Talk (red-gate.com)

 

Best Regards,

Neeko Tang

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

@Anonymous Thanks for your reply.

I am not using SQL DB or PBI Dataset as a source, i am using enter data as a source. I entered the data as a source. Is it possible to do the same in enter data as a source? 

Anonymous
Not applicable

Hi @prakash11440278 ,

 

In my opinion, this should be okay. Then if not, you can create a Power bi dataset and connect to a Power bi dataset to achieve the same effect.

 

Best Regards,

Neeko Tang

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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.