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
Betigolo
Helper I
Helper I

After select a value (Chiclet slicer) i have 2 different values for the same formula

Hi,

Hi have a table with numbers 1 to 9.

Using power bi the user should select one value.

I need to get the value selected.

BUT:

First formula can get the value.

call the formula to be used again comes 0 value.

 

9 is the formula: 

Hours Predited = MIN(TBL_Hours[Power Hours])

 

I i call the "Hours Predited" cames: Blank Value

Already try using the formula and does not work.

Create an equal formula get blank also.

 

 

Do you honw what are happening here?

Many thanks for your help.

ScreenHunter_3860 Jul. 20 15.57.jpg

 

If 

1 ACCEPTED SOLUTION
v-huizhn-msft
Employee
Employee

Hi @Betigolo,

When you click 9 in the Slicer, you want to get number 9 by creating a measure, right? If it is, please create the measure using the formula.

Hours Predited = SELECTEDVALUE(TBL_Hours[Power Hours])

OR

Hours Predited = CALCULATE(MIN(TBL_Hours[Power Hours]),ALLSELECTED(TBL_Hours))


Thanks,
Angelia

View solution in original post

3 REPLIES 3
v-huizhn-msft
Employee
Employee

Hi @Betigolo,

When you click 9 in the Slicer, you want to get number 9 by creating a measure, right? If it is, please create the measure using the formula.

Hours Predited = SELECTEDVALUE(TBL_Hours[Power Hours])

OR

Hours Predited = CALCULATE(MIN(TBL_Hours[Power Hours]),ALLSELECTED(TBL_Hours))


Thanks,
Angelia

Hi, let me try your input. the value is not a direct selection, is a value from 2 imputs as bellow:  persons * hours per dayScreenHunter_3868 Jul. 23 10.43.jpg

I have created 2 different tables as bellow and is working:ScreenHunter_3870 Jul. 23 11.12.jpg

 

Prior: 1 table, with 3 colums (Persons; Hours; Persons * Hours), example:

1;1;1

1;2;2

2;1;2

2;2;4

3;1;3

3;2;6

And do not work.

 

After:

2 diferent tables:

1 table  = Persons

1 table = Hours

 

Result is now the SELLECTED persons * SELLECTED Hours.

Is working.

 

 

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.