Focal Point
[SOLVED] Parameter on dimension table - Displays values not in fact table

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2687084096

July 05, 2018, 01:32 PM
JayInBoston
[SOLVED] Parameter on dimension table - Displays values not in fact table
I have a simple star schema.

I have dimension values for which I have no facts. For instance, we have a default calendar dimension table with all days from 1900 to 2100. We only have transactions 2015-2018.

I want the dropdown year parameter to show 2015 through 2018, not 1900 through 2100.

My first thought was to use the key in the fact table as the "Return Field" and use the dimension value as the "Displayed Field" but that did something odd and only one value showed up in the dropdown.

Is there a standard way to handle this for parameters?

Thanks!

-Jeff

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8105
July 05, 2018, 02:46 PM
FP Mod Chuck
Hi Jeff

First of all Welcome to Focal Point. It is a great forum for getting answers to your development questions..

One method is to create a procedure against the dimension table with a filter on the year between 2015 and 2018 and use XML for the output. Then reference that procedure to populate the drop down.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
July 06, 2018, 11:18 AM
JayInBoston
Thanks for the suggestion.

I want to pull from the fact table, not a specific range.

Do you have a tutorial on this?

Thanks!

-Jeff


WebFOCUS 8105
July 06, 2018, 02:33 PM
FP Mod Chuck
Jeff

I send you an e-mail with word document example. Also in the documentation called Reporting Tools has a section called Creating and Using Parameters in HTML Composer


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats