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 table in my report that looks like this:
COD | Measure | Col?/Measure? |
100 | 2 | 4 |
150 | 2 | 4 |
200 | 2 | 4 |
250 | 2 | 4 |
300 | 1 | 5 |
350 | 1 | 5 |
400 | 1 | 5 |
450 | 1 | 5 |
500 | 1 | 5 |
Total | 13 |
The first two columns are a data column, and a measure that I already have.
The third column is the object of my question: how can I create a column that shows the total of a measure "summarized" by the measure result? In the third column I would like to have the count of the different results of the measure. In the example you see that I have 4 times the measure = 2, and 5 times the measure = 1.
Thank you
Solved! Go to Solution.
Create a new table using DAX below.
NewTable = var tem=SUMMARIZE(Table,Table[COD],"Measure Value",[Measure]) return SUMMARIZE(tem,Table[COD],[Measure Value],"measure count",COUNTX(FILTER(tem,[Measure Value]=EARLIER([Measure Value])),Table[COD]))
You can review my example.
Regards,
Lydia
Create a new table using DAX below.
NewTable = var tem=SUMMARIZE(Table,Table[COD],"Measure Value",[Measure]) return SUMMARIZE(tem,Table[COD],[Measure Value],"measure count",COUNTX(FILTER(tem,[Measure Value]=EARLIER([Measure Value])),Table[COD]))
You can review my example.
Regards,
Lydia
Thank you very much @v-yuezhe-msft
I tought about something like this, but I couldn't figure out the correct formula.
Regards,
Nicola
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 |
---|---|
114 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |