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
ElenaGrom
Frequent Visitor

Pass direct user input as a value to a measure

Hello, Community

 

I have a fact table "Range" (whole numbers) like the below example. The values start from 0 and end with 2 billions.

There is only a couple of thousand unique values for each range, but the gaps between the previous and current range do not have any logic.

 

Requriement:

The user must be able to type in any values as a range he wants to check. The system must be able to accept the exact input, even if the exact values are not present in the table.

 

So far I created 2 DISTINCT tables, 1 for RangeFrom, 1 for RangeTo, with no relation to FACT. I use them as slicers to a table visual. One slicer is "less than or equal to", the other is "greater than or equal to". I have a measuer that calculates resulting scenarios with 3 options: "included", "excluded", "partial".

Due to the big diversity of values i can't create any underlyig table(s) that would include all possible values. What IF parameter is also not an option for the same reason.

 

Therefore, I am stuck with the following result:

 

Range-Forum.jpg

 

Is there any way to achieve the deisered result?
Or, to narrow down the topic - is there any way to pass on the exact value set by the user into a measure?

Your ideas will be much appreciated!

Thank you in advance

 

2 REPLIES 2
Greg_Deckler
Super User
Super User

@ElenaGrom Could you create a disconnected table like below and use it in a range slicer? Then adjust your measure to respect the range?

Table = GENERATESERIES(1, 2000000000,1)

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hello, @Greg_Deckler 

 

Thank you for the offered option!

From the BI desktop I tried to create the GENERATESERIES table, but due to the numbers diversity in the source (0 -> billions) I ended up with "out of memory" message.

I think, this is not an option for my case, or is there a way to optimize?

 

Thank you in advance!

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.