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
Hi,
I need to calculate last values from measures in a table.
The table below shows last 2 dates from 1 year selection.
The Grade and Freq measures and based on MEAN ans STDEV.S calculations
I need measures to calculate
Max Grade to equal a reslut of "B"
Max Freq of the Max Grade to equal a reslut of "High" (if there was a high and low result for Grade "B" the Freq = "Low")
I also need a measure to concatenate the Analyte names for every Grade = Max Grade for the entire selected date range
4/8/2020 has highest grade "C" so Concatenate = Cu, Se, Zn
I can cant filter to last date as this would change the calculations for Grade and Freq as they are dynamically based on the entire selected date range.
Last 2 dates
First 2 dates
Calulations:
Hi,
I have made some progrerss with concatenate. Shows correct result in table but as a card result is Blank
Limiting Contam Test =
Hi @zenton ,
You can create a measure as below and put this new measure onto the card visual:
New Measure =
MAXX (
GROUPBY (
Labware,
Labware[Date],
Labware[LIMS Text ID],
Labware[Analyte],
Labware[Freq],
Labware[Grade]
),
[Limiting Contam Test]
)
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hi @Anonymous
Calculation won't accept Labware[Grade] or Labware[Freq] because they are Measures.
I can try to make simplified pbix file but not easy to do. 80 Tables, 50 relationships and 320 Measures
Thanks Rodney
Hi @Anonymous
I have made a simplififed version of PBIX with 2 sample reports
https://drive.google.com/file/d/1UHjufS9u05rF7qXdmsnb_bGGNajBFDa5/view?usp=sharing
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.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 22 | |
| 10 | |
| 10 | |
| 7 | |
| 5 |