Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
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
The total row is only getting the average of part of the row.
My measure is:
You help is much appreciated!
Solved! Go to Solution.
I discovered that column/row subtotals do not work on the FALSE section of IF statements. For example, the subtotal of "=IF("any day before today", 10, 5)" will always be 10, even if a date includes a day after today. Current solution I am exploring is using a calculated column to do the measure's IF statement.
Hi @ShNBl84 ,
I have a little confused about your requirement.
What do you want to achieve in power bi? Is the image your desired output?
In addition, how do you predict that the sales for Wednesday is 11.5%?
If it is convenient, could you share your data sample with table format and the desired output so that we could have a test on it?
Best Regards,
Cherry
Thanks for your reply.
The image is my current output that has the total only including the days of actual sales. I want it to include all the days (even the predicted sales).
For the sales percentages, those are hard coded values.
Below is some sample data:
NumberDayWeekly Sales %
| 1 | Monday | 0.103 |
| 2 | Tuesday | 0.1136 |
| 3 | Wednesday | 0.1134 |
| 4 | Thursday | 0.1259 |
| 5 | Friday | 0.1946 |
| 6 | Saturday | 0.2113 |
| 7 | Sunday | 0.1382 |
ItemSalesDayStoreDay Number
| Abc | 8 | Monday | 1 | 1 |
| Abc | 7 | Tuesday | 1 | 2 |
| Abc | Wednesday | 1 | 3 | |
| Abc | Thursday | 1 | 4 | |
| Abc | Friday | 1 | 5 | |
| Abc | Saturday | 1 | 6 | |
| Abc | Sunday | 1 | 7 | |
| Abc | 7 | Monday | 2 | 1 |
| Abc | 7 | Tuesday | 2 | 2 |
| Abc | Wednesday | 2 | 3 | |
| Abc | Thursday | 2 | 4 | |
| Abc | Friday | 2 | 5 | |
| Abc | Saturday | 2 | 6 | |
| Abc | Sunday | 2 | 7 | |
| Abc | 6.74666666666667 | Monday | 3 | 1 |
| Abc | 6.94 | Tuesday | 3 | 2 |
| Abc | Wednesday | 3 | 3 | |
| Abc | Thursday | 3 | 4 | |
| Abc | Friday | 3 | 5 | |
| Abc | Saturday | 3 | 6 | |
| Abc | Sunday | 3 | 7 |
I discovered that column/row subtotals do not work on the FALSE section of IF statements. For example, the subtotal of "=IF("any day before today", 10, 5)" will always be 10, even if a date includes a day after today. Current solution I am exploring is using a calculated column to do the measure's IF statement.
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 |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 63 | |
| 30 | |
| 30 | |
| 23 |