Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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
@Anonymous , Not very clear. You can use the dataset as a source
User | Count |
---|---|
102 | |
90 | |
80 | |
71 | |
70 |
User | Count |
---|---|
114 | |
100 | |
97 | |
72 | |
71 |