Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello all, I have three measures stored in a measures table, Start, End and Duration. The duration measurse is a simple DateDiff/days using start and end. If I drop duration in a card it's blank until I filter on a row, then it shows the value I selected. Also in a table visual the Totals do not show. how do I get this measure to calculate the entire column. I can post the end date if needed.
Solved! Go to Solution.
@Anonymous , Based on the columns in visual or you want to group , you need try like
SUMX(VALUES(Fact[Column]),zMeasures[Duration])
SUMX(SUMMARIZE(Fact, Fact[Column1], Fact[Column2),zMeasures[Duration])
or
SUMX(Fact,zMeasures[Duration])
Thank you, the SUMX(VALUES( DAX worked for me and returned the correct number. However after checking the result I found a serious flaw in my Start and Finish DAX formulas. My model assumed that each customer would progress through the buckets in order like Phase 0 to 5 and possibly go into Backlog or No Response. The problem is the created date does not represent a bucket change 100% of the time. I need to group by bucket then capture the MIN and MAX date, which is not happening, the records in Bold/Red are being ignored in my DAX measures. Thanks for any help.
| ID | Task | Bucket | Start | End | Duration | Created |
| 1 | CustomerD | Phase 0 | 1/12/2023 | 1/18/2023 | 6 | 1/12/2023 |
| 2 | CustomerD | Phase 0 | 2/9/2023 | 2/26/2023 | 17 | 2/9/2023 |
| 3 | CustomerD | Phase 2 | 1/18/2023 | 2/9/2023 | 22 | 1/18/2023 |
| 4 | CustomerD | Phase 3 | 2/27/2023 | 3/12/2023 | 13 | 2/27/2023 |
| 5 | CustomerD | Phase 3 | 2/26/2023 | 3/12/2023 | 14 | 2/26/2023 |
| 6 | CustomerD | Phase 4 | 3/20/2023 | 5/2/2023 | 43 | 3/20/2023 |
| 7 | CustomerD | Phase 4 | 3/12/2023 | 5/2/2023 | 51 | 3/12/2023 |
| 8 | CustomerA | Backlog | 1/12/2023 | 2/8/2023 | 27 | 1/12/2023 |
| 9 | CustomerA | No Response | 4/13/2023 | 5/2/2023 | 19 | 4/13/2023 |
| 10 | CustomerA | Phase 0 | 2/27/2023 | 3/8/2023 | 9 | 2/27/2023 |
| 11 | CustomerA | Phase 0 | 2/8/2023 | 3/8/2023 | 28 | 2/8/2023 |
| 12 | CustomerA | Phase 3 | 3/8/2023 | 4/13/2023 | 36 | 3/8/2023 |
@Anonymous , Based on the columns in visual or you want to group , you need try like
SUMX(VALUES(Fact[Column]),zMeasures[Duration])
SUMX(SUMMARIZE(Fact, Fact[Column1], Fact[Column2),zMeasures[Duration])
or
SUMX(Fact,zMeasures[Duration])
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 56 | |
| 47 | |
| 44 | |
| 20 | |
| 20 |
| User | Count |
|---|---|
| 72 | |
| 70 | |
| 34 | |
| 33 | |
| 31 |