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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mrothschild
Continued Contributor
Continued Contributor

Creating calculated table from parameter slicers

PBIX link is here: https://www.dropbox.com/s/41rckk17i870t2v/Slicer%20to%20Create%20Calculated%20Table.pbix?dl=0

 

I have 3 parameters: 

  1. Slicer - Lease Term
  2. Acquisition Cost
  3. Revenue as % of Acquisition Cost

 

I'd like to create a calculated table where the SELECTEDVALUE of the lease term dictates the number of rows and the Acquisition Cost and Revenue as % of Acquisition Cost are repeated as separate columns.  Example desired output is shown here:

 

Lease TermAcquisition CostRevenue %
13000.02
23000.02
33000.02
43000.02
53000.02
63000.02
73000.02
83000.02
93000.02
103000.02
113000.02
123000.02

 

Here's an image of the visuals showing the Parameter Slicers.  The lower left-hand corner is the calculated table, where I have SELECTEDVALUES({parameter},999) and it's defaulting as if nothing is selected.  The table at lower center shows the Measures of the slicer parameters.

 

slicer image.PNG

 

 

Thanks in advance!

2 REPLIES 2
TomMartens
Super User
Super User

Hey,

this will not work, as calculated tables are only recalculated on data refresh.
Calculated tables only "react" on user interactions, e.g. selecting values from a slicer inside a measure.

Regards,
Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

I'm a bit confused about your comment: "Calculated tables only "react" on user interactions, e.g. selecting values from a slicer inside a measure."

 

If my user changes the slicer, which changes the related measure, then I want to populate a column with the value in that measure.  

 

To simplify, let's assume I had a table with one index column: 1, 2, 3, 4, 5, 6.  When I change the slicer from "A" to "B", I want the column "Slicer" to change from A to B for each 1, 2, 3, 4, 5, 6.

 

e.g.: Existing

IndexSlicer
1A
2A
3A
4A
5A
6A

 

user changes slicer from "A" to "B"

 

new calculated table:

 

IndexSlicer
1B
2B
3B
4B
5B
6B

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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