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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Spurgeon74
Frequent Visitor

Fied parameter für x,y-Diagram

Field Parameters not working.JPG

 

What could be the problem here in the xy-diagram? For the table below it works...

Looking forward to your reply

1 ACCEPTED SOLUTION
v-jianpeng-msft
Community Support
Community Support

Thank you MFelix

Hi, @Spurgeon74 

If you try to use SELECTEDVALUE for the visible columns of a table generated by the Field Parameters feature in Power BI, you receive your current error. You can check out an article that SQLBI just posted:

Using SELECTEDVALUE with Fields Parameters in Power BI - SQLBI

vjianpengmsft_0-1726120938832.png

The following case also encountered the same problem, and then solved his problem according to the SQLBI article:

Solved: Field Parameters - Dynamic Visual Title - Microsoft Fabric Community

 

 

Best Regards

Jianpeng Li

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

View solution in original post

5 REPLIES 5
v-jianpeng-msft
Community Support
Community Support

Thank you MFelix

Hi, @Spurgeon74 

If you try to use SELECTEDVALUE for the visible columns of a table generated by the Field Parameters feature in Power BI, you receive your current error. You can check out an article that SQLBI just posted:

Using SELECTEDVALUE with Fields Parameters in Power BI - SQLBI

vjianpengmsft_0-1726120938832.png

The following case also encountered the same problem, and then solved his problem according to the SQLBI article:

Solved: Field Parameters - Dynamic Visual Title - Microsoft Fabric Community

 

 

Best Regards

Jianpeng Li

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

MFelix
Super User
Super User

HI @Spurgeon74 ,

 

Can you please share the details of the error you are getting?


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi Miguel!

 

Field Parameters-11092024-Error details.JPG

 

I get the following message: MdxScript(Model) (5,5) Calculation error in measure "Clearwater"[SelectedColumn]: Column [SelectionAnalyte] is part of the composite key, but not all columns of the composite key are included in the expression or its dependent expression.

 

But I use the same fields in the table below the diagram 

You are using a measure what is the syntax of the measure?

If you use the value from the field parameter that should work properly:

 

MFelix_0-1726068564867.png

 


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



AusgewählteSpalte =
SWITCH(
    SELECTEDVALUE('AuswahlAnalyt'[AuswahlAnalyt]),
    "Antimon (mg/L)", AVERAGE('Klarwasser'[Antimon (mg/L)]),
    "Quecksilber gelöst (mg/L)", AVERAGE('Klarwasser'[Quecksilber gelöst (mg/L)]),
    "Sulfat (mg/L)", AVERAGE('Klarwasser'[Sulfat (mg/L)]),
    "Bromid (mg/L)", AVERAGE('Klarwasser'[Bromid (mg/L)]),
    "Chlorid (mg/L)", AVERAGE('Klarwasser'[Chlorid (mg/L)]),
    "Nitrat (mg/L)", AVERAGE('Klarwasser'[Nitrat (mg/L)]),
    "Nitrit (mg/L)", AVERAGE('Klarwasser'[Nitrit (mg/L)]),
    "Phosphat (mg/L)", AVERAGE('Klarwasser'[Phosphat (mg/L)]),
    "Fluorid (mg/L)", AVERAGE('Klarwasser'[Fluorid (mg/L)]),
    BLANK()
)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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