Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Good afternoon forum,
I'm having trouble generating a pivot table. The main idea is that the table is generated from the value selected in the filter. Below I share the code made so far.
Clarifications
The selectedvalue function is not registering the selection correctly, what would be the reason?
On this particular page of the report I have a measure that also uses the selected value from the filter to perform calculations, it works well.
In the original code is the word VAR used as a keyword to identify the SelectedGenre variable.
Here is an example.
Here's what the code currently returns.Lo que devuelveWhat it gives back
Here's what you should return
There seems to be a typo in your code. The WERE keyword should be VAR.
VAR SelectedGenre = SELECTEDVALUE('Musical genre'[nombre_genero])
If you're still having problems, provide some dummy data and the desired outcome. It is best presented in the form of a table.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 18 | |
| 10 | |
| 9 | |
| 7 | |
| 7 |