Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a report which is originally in the below given format;
It has the columns-MTD,QTD and YTD.
My new requirement is instad of the above given columns it should be as shown below-
We will be having 3 slicers for month, quarter and year. If I select month as Jan, Feb, Mar and April only the Month Unit, Month Sales and Month Mix % will show the value for those months, if I select quarter then only the Quarter columns will change based on the selection and same is for the Year.
I tried to create measure as-
Solved! Go to Solution.
Hi @Avivek,
Try measure as:
Measure =
var _table=CALCULATETABLE(VALUES('Table'[_subcategory]),FILTER(ALL('Table'),'Table'[category] in FILTERS('Table'[category])))
Return
CALCULATE(MAX('Table (2)'[value]),'Table (2)'[subcategory] in _table)
Here is the output:
Here is the demo, please try it: New measure needed for month, quarter and year sales.
Best Regards,
Link
Hi @Avivek,
Try measure as:
Measure =
var _table=CALCULATETABLE(VALUES('Table'[_subcategory]),FILTER(ALL('Table'),'Table'[category] in FILTERS('Table'[category])))
Return
CALCULATE(MAX('Table (2)'[value]),'Table (2)'[subcategory] in _table)
Here is the output:
Here is the demo, please try it: New measure needed for month, quarter and year sales.
Best Regards,
Link
@Avivek , Not very clear. But seems like need something similar to measure slicer
measure slicer
https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slic...
https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/50...
https://www.youtube.com/watch?v=vlnx7QUVYME
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |