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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
sivarajan21
Post Prodigy
Post Prodigy

Field Parameter button selection shows nothing in visual

Hi,

 

I have 2 field parameters that filters a visual like below:

sivarajan21_0-1709714282348.png

The one field parameter acts as a main and other acts as sub.

Main will have only 2 buttons one for target and another for budget.

But sub will have 3 buttons such as Carbon, Units and Cost.

 

Their relationships are as below:

sivarajan21_1-1709714500593.png

 

Now the issue is, when i press the carbon button, it is not displaying any values in the visual as below:

sivarajan21_3-1709714737836.png

 

The Actual measure(Show values) that holds this carbon measure as shown below is:

sivarajan21_2-1709714620631.png

sivarajan21_5-1709715115594.png

 

But Actual Units and Actual Cost are showing values as below:

Actual Units:

sivarajan21_4-1709714938659.png

 

Actual Cost

sivarajan21_6-1709715347413.png

Please help me resolve this

 

PFA file here Portfolio 6 latest (2) - Copy.pbix

 

Please let me know if you need further info!

 

Thanks in advance!

@marcorusso @amitchandak @Ahmedx @Greg_Deckler @Anonymous 

1 ACCEPTED SOLUTION
rbriga
Impactful Individual
Impactful Individual

I see the problem.

You're slicing by the field "Category Main" {budget, target}, but Carbon in the Parameter tables have no "category main".

Thus, you're filtering "carbon" out.

You won't even see "carbon' in [actual], because  "Category Main" filters your "Parameter 2" table.

 

If you're going to slice by "category main', you can't leave that field empty in your parameter tables for "carbon".

 

It's hard for me to offer a fix because the logic is a little hard to follow, but this is the problem.

 

-------------------------
Data analyst by day, hockey goalie by night.
Did I help? Then please hit that "kudos" or "accept as a solution" button!

View solution in original post

6 REPLIES 6
rbriga
Impactful Individual
Impactful Individual

I see the problem.

You're slicing by the field "Category Main" {budget, target}, but Carbon in the Parameter tables have no "category main".

Thus, you're filtering "carbon" out.

You won't even see "carbon' in [actual], because  "Category Main" filters your "Parameter 2" table.

 

If you're going to slice by "category main', you can't leave that field empty in your parameter tables for "carbon".

 

It's hard for me to offer a fix because the logic is a little hard to follow, but this is the problem.

 

-------------------------
Data analyst by day, hockey goalie by night.
Did I help? Then please hit that "kudos" or "accept as a solution" button!

Hi @rbriga ,

Thanks fo your hint!

I have found a solution for this and close this query by accepting your hint as solution

 

rbriga
Impactful Individual
Impactful Individual

  1. Can you share your measure [Carbon tCO2e] (and any measure it refferences, if any)?
  2. In the same chart, what happens if you replace the parameter with the measure [Carbon tCO2e] itself?

I can't download the .pbix file because of my company's policy, so I'll need more info.

-------------------------
Data analyst by day, hockey goalie by night.
Did I help? Then please hit that "kudos" or "accept as a solution" button!

Hi @rbriga ,

 

Thanks for your quick response!

Below is the carbon measure used

Carbon tCO2e = SUMX(DataInvoice,DataInvoice[Units]*DataInvoice[Factor])/1000
 
Factor in turn is a calculated column as below:
Factor = calculate(max(Factor[Value]),FILTER(Factor, Factor[StartDate] <= DataInvoice[Date] && Factor[EndDate] >= DataInvoice[Date]),Factor[DBName - Utility]=RELATED(Points[DBName-Utility]))
 
Relationships between calendar and factor is:
sivarajan21_1-1709810608175.png

Is there any issue with relationship here as they are related tables?

 

with regards to second point, If i drag the carbon  measure to replace the parameter, it will show carbon but Units  & cost will not be displayed.
End goal is to use the parameter to make it dynamic
sivarajan21_0-1709810410166.png
My confusion is,Actual Units and Actual Cost are showing values in chart visual but carbon only is not showing up: 
Below is the field parameter table for your reference:
sivarajan21_2-1709810924463.png

 

Please let me know if you need further info!

Thanks in advance!
rbriga
Impactful Individual
Impactful Individual

Selecting the value of a field parameter may require something other than SELECTEDVALUE().

Following this SQLBI article , try this pattern:

 

1	VAR __SelectedValue =
2	    SELECTCOLUMNS (
3	        SUMMARIZE ( Parameter, Parameter[Parameter], Parameter[Parameter Fields] ),
4	        "Row",Parameter[Parameter]
5	    )
6	RETURN IF ( COUNTROWS ( __SelectedValue ), __SelectedValue )

 

  

This will replace your SELECTEDPARAMETER variable.

-------------------------
Data analyst by day, hockey goalie by night.
Did I help? Then please hit that "kudos" or "accept as a solution" button!

Hi @rbriga ,

 

Thanks for your quick response!

I tried implementing by replacing my var with above solution you provided but still its not showing carbon

sivarajan21_0-1709803232375.pngsivarajan21_1-1709803292440.png

 

 

Thanks in advance!
@Ahmedx @marcorusso @amitchandak 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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