Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Solved! Go to Solution.
Hi,
Try this
Hope this helps.
Please post a screensshot of your data. I am lost trying to read that code not understanding how any of the columns look.
There's more data than just this but these are the fields that really matter for this scenario. Each Service Order Number has an open and close date field. In this example all Open Dates are in January of 2019 and I'd like to show how many SO's were opened in that month. The counter would be showing how many SO's were closed in Jan 2019 which in this screen shot is most but not all of the records. When looking for closed records some of these would count towards FEB 2019.
Hi,
Try this
Hope this helps.
@Ashish_Mathur Thank you that got me what I needed!
If you have the time could you maybe explain the dax a bit? I'm newer to Dax and Powerbi and would love to more deeply understand the solution for further application. When I look at the Open measure it seems to just be counting all Service Orders. What makes it only look at those with the same open date month? Also what is the significance in choosing the specific active and inactive relationship?
Thank you again!
You are welcome. Since the active relationship is from the Open date column, the COUNTORWS function will only count the records which fall in that month (Month is from the Calendar Table). For the close date column, that specific relationship has to be activated before counting the rows.
@Ashish_Mathur Hello Ashish,
I had a quick question refering to the solution you previously provided. I'm displaying my values in treemap visuals seperately and the Closed values appear to just be mimicing the opened values. The picture below has both treemaps that are looking at May 2019. The Opened visual shows the correct value of 240 for "DISC" but Closed doesn't show 249 but instead seems to repeat the first visual. The only difference is that in the "values" section I've placed Opened and Closed fields you'd previously helped with. Do you have any idea as to why closed isn't showing the correct values? Thanks
I will need to see your file. Share the link from where i can download your PBI file.
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
91 | |
84 | |
76 | |
65 |
User | Count |
---|---|
145 | |
109 | |
109 | |
102 | |
96 |