The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi everyone,
I need your advice on how I can publish a measure that generate from other measure into donut chart. This is what my report table (matrix) look like generated from thousands of data.
Project name | Project On-track Status |
Project1 | On-track |
Project2 | Somewhat on-track |
Project3 | Off-track |
Project4 | On-track |
Project5 | Off-track |
Project6 | On-track |
Project7 | On-track |
Project8 | Off-track |
Project9 | Somewhat on-track |
Project10 | Somewhat on-track |
Project11 | Off-track |
Project12 | On-track |
Project13 | On-track |
Project14 | On-track |
Project15 | On-track |
Project16 | On-track |
Project17 | Somewhat on-track |
Project18 | On-track |
Project19 | On-track |
Project20 | Off-track |
Project21 | Off-track |
Please provide sanitized sample data that fully covers your issue.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
Hi @lbendlin
Thank you for your attention. Let me post my pbi file. This chart what exactly I need that coming from project on-track status measure:
Thanks in advance!
The difference between calculated columns and measures is subtle but important. Calculated columns are onl computed once and are independent of filter choices. Measures are computed dynamically each time a filter changes.
One could argue that your process status should be a calculated column as it cannot be impacted by filter choices. On the other hand there could be screnarios where the status can flip based on resource allocation etc. So let's assume that using measures is appropriate.
You will need to predefine your buckets in a disconnected table. The number is added to facilitate the sort order.
Status = {("On-track",1),("Somewhat on-track",2),("Off-track",3),("No data",4)}
Then you need to create a measure that counts the matches.
Measure 2 =
var a = ADDCOLUMNS(values(IPTT_Data[Project name]),"t",[Project On-track])
return countrows(filter(a,[t]=SELECTEDVALUE('Status'[Value])))
This is horribly inefficient but gives you the required result.
Note that you can also simplify your measure somewhat
Project On-track = SWITCH(TRUE(),[Project Achievement no-zero]>=0.90,"On-track",[Project Achievement no-zero]>0.70,"Somewhat on-track",[Project Achievement no-zero]<0.70,"Off-track","No data")
see attached.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
19 | |
18 | |
16 | |
13 |
User | Count |
---|---|
39 | |
38 | |
23 | |
21 | |
20 |