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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ckserra33
New Member

Using card as a measure?

Hi everyone.  I am VERY new to PBI so I may be stating some things incorrectly.  I am making a part usage report for our warehouse and I am trying to calculate the per day usage of each part.  So if I slice the report for 30 days, and use 60 of a single part, the value would be 2.  I am having trouble understanding how and where to capture that date.  I have a card displaying the number of distinct days being sliced.  A collegue told me to chack out using a variable but I am not ubderstanding that part just yet.  I think once I can get that value somewhere I can do the rest of the calculations.

 

Thanks

 

Chris

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @ckserra33 ,

 

You could use SELECTEDVALUE function - DAX | Microsoft Learn to catch the single value in slicer, or use VALUES function (DAX) - DAX | Microsoft Learn to catch multiple values in slicer.

Also take a look at MIN function (DAX) - DAX | Microsoft Learn and MAX function (DAX) - DAX | Microsoft Learn.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @ckserra33 ,

 

You could use SELECTEDVALUE function - DAX | Microsoft Learn to catch the single value in slicer, or use VALUES function (DAX) - DAX | Microsoft Learn to catch multiple values in slicer.

Also take a look at MIN function (DAX) - DAX | Microsoft Learn and MAX function (DAX) - DAX | Microsoft Learn.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
TomMartens
Super User
Super User

Hey @ckserra33 ,

 

I have to admit that I cannot follow, for this reason read this thread: https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1891875#M7259...

 

It demands a lot, maybe start simple and describe how your data looks like by providing sample data (use an Excel file). If you are wondering how to share the Excel file, upload the file to onedrive, google drive, or dropbox, and share the link. 

Here you will find an introduction into Power BI: https://powerbi.microsoft.com/en-us/learning/

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.