Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi Guys,
I have a data as:
-DateTime ("yyyy-MM-dd")
-ReachedUsers
-SuccessReachedUsers
-ReachedRate : SuccessReachedUsers / ReachedUsers
I have the data shown per day (days granularity) but i wish to have a button to show them by months.
What i want to do is to have a toggle button consist of Days and Months and by selecting Days i'll get the following data:
and by selecting Month button i'll get:
I'd appreciate if anyone knows if this can be done and how?
Solved! Go to Solution.
For your case, you'd better use bookmark in power bi.
https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive
and for the total problem, it seems that total of each day in march on first picture is not same as second picture in mar.
If it is a measure total problem?
please see this post about it
https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376
Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907
If not your case, please share your sample pbix file and your expected output.
Regards,
Lin
You can use ALLSELECTED instead of ALL to do this.
To make your measure as general as possible (based on your current model), you could write
P Mix =
DIVIDE (
SUM ( Sheet1[Prior Volume] ),
CALCULATE (
SUM ( Sheet1[Prior Volume] ),
ALLSELECTED ( Sheet1[Product Hier], Sheet1[Product Hier lvl 1], Sheet1[Product Hier lvl 2] )
)
)
Using this measure, the denominator would be determined by any slicers filtering the table.
For convenience, it might be better to have a Product table related to your existing table, which would simplify the above measure since you could write ALLSELECTED ( 'Product' ).
@Anonymous
ALLSELECTED will not solve the problem .. could you please send a more clear query to calculate total by month?
For your case, you'd better use bookmark in power bi.
https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive
and for the total problem, it seems that total of each day in march on first picture is not same as second picture in mar.
If it is a measure total problem?
please see this post about it
https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376
Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907
If not your case, please share your sample pbix file and your expected output.
Regards,
Lin
Hi @v-lili6-msft , Thank you for your answer, i do believe that the bookmark is the most suitable solution in my case, but i can't share the pbix file due to the sensentive data that i have.
@MohannadSh1996 ,While you can switch Measure using slicer. I think in this case you have to use bookmark
https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive
@amitchandak, but how to get the total of column or the percentages of two columns per month?
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 |
|---|---|
| 53 | |
| 35 | |
| 31 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 75 | |
| 72 | |
| 38 | |
| 35 | |
| 25 |