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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Orstenpowers
Post Patron
Post Patron

Integrate a GENERATESERIES value into another measure

 

Dear Community,

 

I have a working measure, which is as follows:

Specific_V_digit = RIGHT ( LEFT(PCF_V_NUMBER[- Material Desc],15),1)
 
With V-digit = GENERATESERIES(0, 32, 1) I created a slicer that allows me to enter a figure between 0 and 32.

Now I would like to replace the "15" of the first measure so that it will consider the figure I entered into the slicer.
Entering "19" into the slicer should result in a measure RIGHT ( LEFT(PCF_V_NUMBER[- Material Desc],19),1) etc...
 
I tried to realize this with V-digit Wert = SELECTEDVALUE('V-digit'[V-digit]) instead of 15, but it did not work...
 
What do I need to do? Looking for your help I remain
10 REPLIES 10
v-kaiyue-msft
Community Support
Community Support

Hi @Orstenpowers ,

 

I want to validate the valuable input provided by @jgeddes  and @samratpbi . Their initial thoughts helped guide my approach. However, I noticed that more details are needed to fully understand the problem.


1. create parameters.

vkaiyuemsft_1-1713775748540.png

2. create measure.

Measure =
RIGHT(LEFT(MAX('Table'[value]),'Parameter'[Parameter Value]),1)

 

vkaiyuemsft_2-1713775764098.png

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

Hi @v-kaiyue-msft !

Dear Clara, Thank you very much for your input!

Your parameter and measure works perfectly! Thank you!

However, my request goes somewhat beyond that. Please have a look at the below screenshot. My final and required result would be to see the results of column "Measure" as selectable values for a separate slicer. Looking at this screenshot, the slicer should contain the values 0, 1, 4 and 6.

 

PBI_Comm_017.JPG 

 

Did I explain it understandable?

Hi @Orstenpowers ,

You can try using filters on the right hand side of the report to select the appropriate filter to display the desired value.

vkaiyuemsft_0-1713853144563.png

 

Also, if you want to use measure as slicer value, you can refer to this solution: Solved: How to use a measure as slicer? - Microsoft Fabric Community.

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

Hi @v-kaiyue-msft !
I tried to transfer the measure you provided into the proposed solution at Solution for "How-to-use-a-measure-as-slicer" .

Obviously, I am not skilled enough. 

Orstenpowers_0-1717749287731.png

 

 


May I ask you to please assist/ tell me what I need to do?

Hi @v-kaiyue-msft ,

 

Thanks for your response!
I will check the link that you provided. Hopefully I get the slicer solution started...

If not, I would come back to you. 🙂

Hi @v-kaiyue-msft !
I tried to transfer the measure you provided into the proposed solution at Solution for "How-to-use-a-measure-as-slicer" .

Obviously, I am not skilled enough. 😔
May I ask you to please assist/ tell me what I need to do?

Hi @v-kaiyue-msft !
I tried to transfer the measure you provided into the proposed solution at Solution for "How-to-use-a-measure-as-slicer" .

Obviously, I am not skilled enough. 

Orstenpowers_0-1714476204830.png

 


May I ask you to please assist/ tell me what I need to do?

samratpbi
Solution Supplier
Solution Supplier

Hi,

you need to generate a series using Fields parameter first.
Modeling -> New Parameter -> Fields. Generate the fields parameter with min 1 and max 32. 
Now, in the measure you use the measure generated which is:

Series Value = SELECTEDVALUE('Series'[Series], 1)

Now, use this Series Value measure to decide your trim characters.

I created a sample measure to test:

Text Trim =
VAR _text = "abcdefghijklmnopqrstuvwxyz"
RETURN
LEFT(_text,Series[Series Value])
 
Below is the output:
samratpbi_0-1713450852337.png

 

If this resolves your problem, then please mark it as solution, Thanks!

Hi @samratpbi,

Thanks for your proposal! After adjusting it slightly, it brings the expected result with your sample text, which is great. 👍

Now it is as follows:

Text Trim =
VAR _text = "abcdefghijklmnopqrstuvwxyz"
RETURN
RIGHT(LEFT(_text,'V-digit'[V-digit Wert]),1)
 
Now I would need to replace "_text" with PCF_V_NUMBER[- Material Desc], but this I do not get working...do you know what to do?

 

jgeddes
Super User
Super User

As an example you could use the measure

Extracted Text = 
LEFT(
    SELECTEDVALUE('Table'[Column1]),    //The column that contains the text to be manipulated
    SELECTEDVALUE(Digit[Digit])         //The value selected from the slicer
)

to get a result of 

jgeddes_0-1713450308703.png

from the tables

Column1

jgeddes_2-1713450480577.pngjgeddes_3-1713450494871.png

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.