79722867

Date: 2025-08-01 18:52:27
Score: 1.5
Natty:
Report link

Note that this answer might not have been an option at the time of this question.

Give your cell a range name:

enter image description here

With your cell selected click From Table/Range on the Data menu.

enter image description here

Power Query opens with the parameter in a query with the type automatically detected.

enter image description here

Right-click the parameter value and select drill down.

enter image description here

The query now returns a number and can be used in M-code.

enter image description here

There is a problem if your parameter is text. Power Query will try to be helpful and promote it to a column header.

enter image description here

You'll have to delete that from the resulting query and change the type to text.

enter image description here

Here is what it looks like after deleting the Promoted Headers and Changed Type steps, and adding the new Changed Type and Drill Down steps. I used the GUI and am showing the Advanced Editor for reference.

enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: DavidG