Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply

Need help with parameter

I have create a parameter named 'AssetID'

parvathisuku_90_0-1600328976855.png

I need to use the same parameter in my measure 

Per Asset = CALCULATE(
    AVERAGE('cbdb alarm_occurences'[qty_alarms_7day]),
    'cbdb alarm_occurences'[grid_element_key]
        IN { "75e76b7c-19f3-4119-a043-859331e74c12" }
Instead of "75e76b7c-19f3-4119-a043-859331e74c12" I want use parameter AssetID
Can some please help
5 ACCEPTED SOLUTIONS
nandukrishnavs
Community Champion
Community Champion

@parvathisuku_90 

 

You cannot directly use the parameter inside the DAX measure. But you can create a reference of the parameter. Then it will act as a table. After that, you can use it in DAX measure.

 

Attaching the PBIX file for your reference.

 


Regards,
Nandu Krishna

View solution in original post

How can I convert parameter to table. Can you please provide an example.

View solution in original post

@parvathisuku_90 

 

  1. Open Edit Query window
  2. Right-click on Parameter
    1. nandukrishnavs_0-1600349173942.png

       

  3. Click Reference
  4. Then click on convert To Table
    1. nandukrishnavs_1-1600349258185.png

       

 


Regards,
Nandu Krishna

View solution in original post

@parvathisuku_90 

 

after = symbol, you could use selectedvalue() for getting the value.

selectedvalue() 

 


Regards,
Nandu Krishna

View solution in original post

Thank you!!!!! Working fine...

 

 

View solution in original post

7 REPLIES 7
nandukrishnavs
Community Champion
Community Champion

@parvathisuku_90 

 

You cannot directly use the parameter inside the DAX measure. But you can create a reference of the parameter. Then it will act as a table. After that, you can use it in DAX measure.

 

Attaching the PBIX file for your reference.

 


Regards,
Nandu Krishna

How can I convert parameter to table. Can you please provide an example.

@parvathisuku_90 

 

  1. Open Edit Query window
  2. Right-click on Parameter
    1. nandukrishnavs_0-1600349173942.png

       

  3. Click Reference
  4. Then click on convert To Table
    1. nandukrishnavs_1-1600349258185.png

       

 


Regards,
Nandu Krishna

As mentioned, I have added the table.But not able to access the same in my measure

parvathisuku_90_0-1600762553272.png

 

@parvathisuku_90 

 

after = symbol, you could use selectedvalue() for getting the value.

selectedvalue() 

 


Regards,
Nandu Krishna

Thank you!!!!! Working fine...

 

 

Anonymous
Not applicable

Hi @parvathisuku_90 ,

If the problem has been resolved, could you please mark the helpful post as Answered? It will help other members in the community find the solution easily if they face the similar problem with you. Thank you.

Best Regards

Rena

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.