Gist 4d1f4b4dc3b5e7c1353bd9ae3059b33a
✓ Published0🌍 Public
HHugoberry
Last edited Jun 7, 2017
Created on Jun 7, 2017
This example visualizes a parametric curve in the shape of a fish, plotted from 100 discrete points. The code computes the x and y coordinates using trigonometric functions—x as `2*(cos(t) - (sin(t)^2)/sqrt(2))` and y as `2*sin(t)*cos(t)`—over a range of t from 0 to 2π. The data is generated in Power Query M, with the `Fish.M` table using `List.Accumulate` to create the point indices, while the DAX measures `Fish.dax xt` and `yt` supply the coordinate formulas. The rendering relies on the table’s `#table` constructor, though the drawing itself is not shown in the gist, focusing instead on the data preparation and coordinate transformation.
AI-generated description