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.
Hello all, I am trying to create a single card visual which displays a count of my past due orders.
My dataset is setup with a colume of 'Order No' which lists the same value multiple times based on the items within the order, I then have a column 'Order Date' and 'Est Delivery Date' lastly a calculated column 'PastDue' which populates based on 'Order Date < Today()'.
My problem is when creating this card/visual and using the field of 'PastDue' and the count calculation my results are skewed since it is counting each instance, whereas I need it to only count each instace based on a distinct order number.
Solved! Go to Solution.
Thanks @v-yuezhe-msftI actually was able to overcome the calcuation issue by creating a helper table which I then created a summarized listing of my orders/dates to allow the calculation to work.
Right click your table and select “New Measure”, apply the following formula. Then drag the measure to a Card visual to check if you get expected result.
Measure = CALCULATE(DISTINCTCOUNT(Table[Order No]),FILTER(Table, Table[Order Date]<TODAY()))
If the above DAX doesn’t help, please share sample data of your table and post desired result here.
Regards,
Lydia
Thank you all for your help, I am able to get this working within a test environment, however it doesn't work with my live data for some reason. I believe it is in the way it is intially formatted so I will continue working with it.
@adamnimmo,
You can post error message and share sample data of the table for us to analyze.
Regards,
Lydia
Thanks @v-yuezhe-msftI actually was able to overcome the calcuation issue by creating a helper table which I then created a summarized listing of my orders/dates to allow the calculation to work.
Hi,
Use this calculated field formula
=DISTINCTCOUNT(Data[Order No])
Hope this helps.
Sample data would be hugely beneficial.
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
96 | |
77 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |