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
Hello All, complete noob here, just about halfway through the first level of guided learning. I feel hands on playing around is just as useful as formal instruction. Here is my question, (yes i searched the community and no I couldn't find it, not saying its not there, just I didn't find it.) Anyway, I have a data set of employee expenses, I have Slicer 1 to filter by Employee, and Slicer 2 to filter by expense type, ie (airfare, meals, hotel, office supplies, etc. ). I want to create a visual card that will display the average as a result of the slicers, I do no how to use "Edit Interactions" but the problem is I am not that familiar with DAX yet and I cant get any formulas to work. Currently, slicer 1 can select multiple people, but slice 2 can only do 1 expense at a time. Here is an example of what I am trying to accomplish.
Sample Data Set (take note the bar visual current shows Jack and John, with the values 1000, and 2600 respectively
Emp Exp Type Amount Slicer 1 Slicer 2 Card Visual (average of airfare for the people selected)
Jack Airfare 600 x Jack Airfare 600 (average of jack and johns airfare by occurance)
Jack Airfare 400 Jill
Jack Hotel 100 x John
Jack Food 20 Mary
Jill Airfare 300
Jill Hotel 150
Jill Food 30
John Airfare 600
John Airfare 1100
John Airfare 500
John Airfare 400
Mary Food 30
Thank you!!
Solved! Go to Solution.
Hi @Devildogtevor,
Looing at your question you don't need to had any DAX to your calculations you just need to select the Amount to the card visual and then select the Average as the summarization.
However if you want to do it by a measure just add the following measure to your data:
AVERAGE EXPENSE = AVERAGE (Table[Expense])
The calculations are based on context given by the slicers so one of the two methods will give you the 600.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Devildogtevor,
Looing at your question you don't need to had any DAX to your calculations you just need to select the Amount to the card visual and then select the Average as the summarization.
However if you want to do it by a measure just add the following measure to your data:
AVERAGE EXPENSE = AVERAGE (Table[Expense])
The calculations are based on context given by the slicers so one of the two methods will give you the 600.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsIf 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.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 40 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 32 | |
| 27 | |
| 25 |