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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi All,
Im attempting to display a compass using the pyhton visual in power BI to show the current wave direction from a sensor in the sea.
It works when i define a varible in the script, but the problem arises when i want to use the data i have in one of my datasets.
Can the dataset be used as a variable and how ?
I have the latest angle which is what I want to use to create the graph that represents a compass.
any help greatly appreciated
I can try describe it better,
I have wave data for the past year. i have filtered it to only be the most recent data avaliable. It is an angle that corresponds to the direction of the waves.
I would like to display this angle on a compass so it is easy to understand for my client.
i have coded a graph that looks like a compass in python.
I need to take the single most recent data value and use it in my python script to create the arrow (display direction).
So my question is how you take data in power BI and use it as a variable to be used for calculations in the python visual.
Here is my code:
Hi @Anonymous ,
You could extract the data from a visual.
Please kindly refer to
Export data from a Power BI visualization - Power BI | Microsoft Docs
Best Regards,
ShundaSteph
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 49 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 91 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |